Author: tkreuzer Date: Thu May 14 19:44:50 2015 New Revision: 67718
URL: http://svn.reactos.org/svn/reactos?rev=67718&view=rev Log: [CRT] Add simple C implementations for acosf, ceilf, floorf, fmodf and fix sqrtf
Added: trunk/reactos/lib/sdk/crt/math/acosf.c (with props) trunk/reactos/lib/sdk/crt/math/ceilf.c (with props) trunk/reactos/lib/sdk/crt/math/floorf.c (with props) trunk/reactos/lib/sdk/crt/math/fmodf.c (with props) Modified: trunk/reactos/lib/sdk/crt/math/sqrtf.c
Added: trunk/reactos/lib/sdk/crt/math/acosf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/acosf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/acosf.c (added) +++ trunk/reactos/lib/sdk/crt/math/acosf.c [iso-8859-1] Thu May 14 19:44:50 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +acosf( + _In_ float x) +{ + return (float)acos((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/acosf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/ceilf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/ceilf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/ceilf.c (added) +++ trunk/reactos/lib/sdk/crt/math/ceilf.c [iso-8859-1] Thu May 14 19:44:50 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +ceilf( + _In_ float x) +{ + return (float)ceilf((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/ceilf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/floorf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/floorf.c?r... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/floorf.c (added) +++ trunk/reactos/lib/sdk/crt/math/floorf.c [iso-8859-1] Thu May 14 19:44:50 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +floorf( + _In_ float x) +{ + return (float)floorf((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/floorf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/fmodf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/fmodf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/fmodf.c (added) +++ trunk/reactos/lib/sdk/crt/math/fmodf.c [iso-8859-1] Thu May 14 19:44:50 2015 @@ -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); +}
Propchange: trunk/reactos/lib/sdk/crt/math/fmodf.c ------------------------------------------------------------------------------ svn:eol-style = native
Modified: trunk/reactos/lib/sdk/crt/math/sqrtf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/sqrtf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/sqrtf.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/math/sqrtf.c [iso-8859-1] Thu May 14 19:44:50 2015 @@ -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); }