mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[CRT]
Add simple C implementations for acosf, ceilf, floorf, fmodf and fix sqrtf svn path=/trunk/; revision=67718
This commit is contained in:
parent
6115da1a2a
commit
d924c50bdf
11
reactos/lib/sdk/crt/math/acosf.c
Normal file
11
reactos/lib/sdk/crt/math/acosf.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
_Check_return_
|
||||
float
|
||||
__cdecl
|
||||
acosf(
|
||||
_In_ float x)
|
||||
{
|
||||
return (float)acos((double)x);
|
||||
}
|
11
reactos/lib/sdk/crt/math/ceilf.c
Normal file
11
reactos/lib/sdk/crt/math/ceilf.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
_Check_return_
|
||||
float
|
||||
__cdecl
|
||||
ceilf(
|
||||
_In_ float x)
|
||||
{
|
||||
return (float)ceilf((double)x);
|
||||
}
|
11
reactos/lib/sdk/crt/math/floorf.c
Normal file
11
reactos/lib/sdk/crt/math/floorf.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
_Check_return_
|
||||
float
|
||||
__cdecl
|
||||
floorf(
|
||||
_In_ float x)
|
||||
{
|
||||
return (float)floorf((double)x);
|
||||
}
|
12
reactos/lib/sdk/crt/math/fmodf.c
Normal file
12
reactos/lib/sdk/crt/math/fmodf.c
Normal 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);
|
||||
}
|
|
@ -5,8 +5,10 @@
|
|||
*/
|
||||
#include <math.h>
|
||||
|
||||
_Check_return_
|
||||
float
|
||||
_sqrtf(float x)
|
||||
__cdecl
|
||||
sqrtf(float x)
|
||||
{
|
||||
return ((float)sqrt((double)x));
|
||||
return (float)sqrt((double)x);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue