2010-07-21 16:03:44 +00:00
|
|
|
/**
|
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
|
|
* This file is part of the w64 mingw-runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
|
|
*/
|
2011-02-10 11:35:05 +00:00
|
|
|
#define cosf _dummy_cosf
|
2010-07-21 16:03:44 +00:00
|
|
|
#include <math.h>
|
2011-02-10 11:35:05 +00:00
|
|
|
#undef cosf
|
2010-07-21 16:03:44 +00:00
|
|
|
|
2015-05-14 20:20:59 +00:00
|
|
|
#if defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_AMD64))
|
|
|
|
#pragma warning(suppress:4164) /* intrinsic not declared */
|
|
|
|
#pragma function(cosf)
|
|
|
|
#endif /* _MSC_VER */
|
|
|
|
|
|
|
|
float cosf(float x)
|
2010-07-21 16:03:44 +00:00
|
|
|
{
|
2015-05-14 20:20:59 +00:00
|
|
|
return ((float)cos((double)x));
|
2010-07-21 16:03:44 +00:00
|
|
|
}
|