Add simple C implementations for acosf, ceilf, floorf, fmodf and fix sqrtf

svn path=/trunk/; revision=67718
This commit is contained in:
Timo Kreuzer 2015-05-14 19:44:50 +00:00
parent 6115da1a2a
commit d924c50bdf
5 changed files with 49 additions and 2 deletions

View file

@ -0,0 +1,11 @@
#include <math.h>
_Check_return_
float
__cdecl
acosf(
_In_ float x)
{
return (float)acos((double)x);
}

View file

@ -0,0 +1,11 @@
#include <math.h>
_Check_return_
float
__cdecl
ceilf(
_In_ float x)
{
return (float)ceilf((double)x);
}

View file

@ -0,0 +1,11 @@
#include <math.h>
_Check_return_
float
__cdecl
floorf(
_In_ float x)
{
return (float)floorf((double)x);
}

View file

@ -0,0 +1,12 @@
#include <math.h>
_Check_return_
float
__cdecl
fmodf(
_In_ float x,
_In_ float y)
{
return (float)fmod((double)x,(double)y);
}

View file

@ -5,8 +5,10 @@
*/ */
#include <math.h> #include <math.h>
_Check_return_
float float
_sqrtf(float x) __cdecl
sqrtf(float x)
{ {
return ((float)sqrt((double)x)); return (float)sqrt((double)x);
} }