Author: tkreuzer Date: Thu May 14 19:06:00 2015 New Revision: 67717
URL: http://svn.reactos.org/svn/reactos?rev=67717&view=rev Log: [CRT] Add simple C implementations for _chgsignf, _copysignf, _hypotf, asinf, atan2f, atanf, coshf, expf, log10f, modff, sinhf, tanf, tanhf
Added: trunk/reactos/lib/sdk/crt/math/_chgsignf.c (with props) trunk/reactos/lib/sdk/crt/math/_copysignf.c (with props) trunk/reactos/lib/sdk/crt/math/_hypotf.c (with props) trunk/reactos/lib/sdk/crt/math/asinf.c (with props) trunk/reactos/lib/sdk/crt/math/atan2f.c (with props) trunk/reactos/lib/sdk/crt/math/atanf.c (with props) trunk/reactos/lib/sdk/crt/math/coshf.c (with props) trunk/reactos/lib/sdk/crt/math/expf.c (with props) trunk/reactos/lib/sdk/crt/math/log10f.c (with props) trunk/reactos/lib/sdk/crt/math/modff.c (with props) trunk/reactos/lib/sdk/crt/math/sinhf.c (with props) trunk/reactos/lib/sdk/crt/math/tanf.c (with props) trunk/reactos/lib/sdk/crt/math/tanhf.c (with props)
Added: trunk/reactos/lib/sdk/crt/math/_chgsignf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/_chgsignf.... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/_chgsignf.c (added) +++ trunk/reactos/lib/sdk/crt/math/_chgsignf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,10 @@ + +#include <math.h> + +_Check_return_ +float +_chgsignf(_In_ float x) +{ + return (float)_chgsign((double)x); +} +
Propchange: trunk/reactos/lib/sdk/crt/math/_chgsignf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/_copysignf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/_copysignf... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/_copysignf.c (added) +++ trunk/reactos/lib/sdk/crt/math/_copysignf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,12 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +_copysignf( + _In_ float x, + _In_ float y) +{ + return (float)_copysign((double)x, (double)y); +}
Propchange: trunk/reactos/lib/sdk/crt/math/_copysignf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/_hypotf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/_hypotf.c?... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/_hypotf.c (added) +++ trunk/reactos/lib/sdk/crt/math/_hypotf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,12 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +_hypotf( + _In_ float x, + _In_ float y) +{ + return (float)_hypot((double)x, (double)y); +}
Propchange: trunk/reactos/lib/sdk/crt/math/_hypotf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/asinf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/asinf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/asinf.c (added) +++ trunk/reactos/lib/sdk/crt/math/asinf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +asinf( + _In_ float x) +{ + return (float)asin((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/asinf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/atan2f.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/atan2f.c?r... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/atan2f.c (added) +++ trunk/reactos/lib/sdk/crt/math/atan2f.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,12 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +atan2f( + _In_ float x, + _In_ float y) +{ + return (float)atan2((double)x,(double)y); +}
Propchange: trunk/reactos/lib/sdk/crt/math/atan2f.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/atanf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/atanf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/atanf.c (added) +++ trunk/reactos/lib/sdk/crt/math/atanf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +atanf( + _In_ float x) +{ + return (float)atan((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/atanf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/coshf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/coshf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/coshf.c (added) +++ trunk/reactos/lib/sdk/crt/math/coshf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +coshf( + _In_ float x) +{ + return (float)cosh((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/coshf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/expf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/expf.c?rev... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/expf.c (added) +++ trunk/reactos/lib/sdk/crt/math/expf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +expf( + _In_ float x) +{ + return (float)exp((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/expf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/log10f.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/log10f.c?r... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/log10f.c (added) +++ trunk/reactos/lib/sdk/crt/math/log10f.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +log10f( + _In_ float x) +{ + return (float)log10((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/log10f.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/modff.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/modff.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/modff.c (added) +++ trunk/reactos/lib/sdk/crt/math/modff.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,17 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +modff( + _In_ float x, + _Out_ float *y) +{ + double _Di, _Df; + + _Df = modf((double)x,&_Di); + *y = (float)_Di; + + return (float)_Df; +}
Propchange: trunk/reactos/lib/sdk/crt/math/modff.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/sinhf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/sinhf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/sinhf.c (added) +++ trunk/reactos/lib/sdk/crt/math/sinhf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +sinhf( + _In_ float x) +{ + return (float)sinh((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/sinhf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/tanf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/tanf.c?rev... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/tanf.c (added) +++ trunk/reactos/lib/sdk/crt/math/tanf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +tanf( + _In_ float x) +{ + return (float)tan((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/tanf.c ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/math/tanhf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/tanhf.c?re... ============================================================================== --- trunk/reactos/lib/sdk/crt/math/tanhf.c (added) +++ trunk/reactos/lib/sdk/crt/math/tanhf.c [iso-8859-1] Thu May 14 19:06:00 2015 @@ -0,0 +1,11 @@ + +#include <math.h> + +_Check_return_ +float +__cdecl +tanhf( + _In_ float x) +{ + return (float)tanh((double)x); +}
Propchange: trunk/reactos/lib/sdk/crt/math/tanhf.c ------------------------------------------------------------------------------ svn:eol-style = native