From: Timo Kreuzer Date: Sun, 3 May 2015 18:15:19 +0000 (+0000) Subject: [CRT] X-Git-Tag: backups/colins-printing-for-freedom@73041~80 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=344e771eb21edbd7fc8690fa72e335c628f6051a [CRT] - Implement portable fabsf.c - Move some ARM stubs to a better location - Add stubs for __dtoi64, __i64tos, __u64tos, _clearfp svn path=/trunk/; revision=67537 --- diff --git a/reactos/lib/sdk/crt/float/arm/_clearfp.s b/reactos/lib/sdk/crt/float/arm/_clearfp.s new file mode 100644 index 00000000000..25275fe1746 --- /dev/null +++ b/reactos/lib/sdk/crt/float/arm/_clearfp.s @@ -0,0 +1,24 @@ +/* + * COPYRIGHT: BSD - See COPYING.ARM in the top level directory + * PROJECT: ReactOS CRT library + * PURPOSE: Implementation of _clearfp + * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include + +/* CODE **********************************************************************/ + + TEXTAREA + + LEAF_ENTRY _clearfp + + __assertfail + bx lr + + LEAF_END _clearfp + + END +/* EOF */ diff --git a/reactos/lib/sdk/crt/math/arm/_controlfp.s b/reactos/lib/sdk/crt/float/arm/_controlfp.s similarity index 100% rename from reactos/lib/sdk/crt/math/arm/_controlfp.s rename to reactos/lib/sdk/crt/float/arm/_controlfp.s diff --git a/reactos/lib/sdk/crt/math/arm/_fpreset.s b/reactos/lib/sdk/crt/float/arm/_fpreset.s similarity index 100% rename from reactos/lib/sdk/crt/math/arm/_fpreset.s rename to reactos/lib/sdk/crt/float/arm/_fpreset.s diff --git a/reactos/lib/sdk/crt/math/arm/_statusfp.s b/reactos/lib/sdk/crt/float/arm/_statusfp.s similarity index 100% rename from reactos/lib/sdk/crt/math/arm/_statusfp.s rename to reactos/lib/sdk/crt/float/arm/_statusfp.s diff --git a/reactos/lib/sdk/crt/math/arm/__dtoi64.s b/reactos/lib/sdk/crt/math/arm/__dtoi64.s new file mode 100644 index 00000000000..172d60f9f17 --- /dev/null +++ b/reactos/lib/sdk/crt/math/arm/__dtoi64.s @@ -0,0 +1,24 @@ +/* + * COPYRIGHT: BSD - See COPYING.ARM in the top level directory + * PROJECT: ReactOS CRT library + * PURPOSE: Implementation of __dtoi64 + * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include + +/* CODE **********************************************************************/ + + TEXTAREA + + LEAF_ENTRY __dtoi64 + + __assertfail + bx lr + + LEAF_END __dtoi64 + + END +/* EOF */ diff --git a/reactos/lib/sdk/crt/math/arm/__i64tos.s b/reactos/lib/sdk/crt/math/arm/__i64tos.s new file mode 100644 index 00000000000..6f6c730bd00 --- /dev/null +++ b/reactos/lib/sdk/crt/math/arm/__i64tos.s @@ -0,0 +1,24 @@ +/* + * COPYRIGHT: BSD - See COPYING.ARM in the top level directory + * PROJECT: ReactOS CRT library + * PURPOSE: Implementation of __i64tos + * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include + +/* CODE **********************************************************************/ + + TEXTAREA + + LEAF_ENTRY __i64tos + + __assertfail + bx lr + + LEAF_END __i64tos + + END +/* EOF */ diff --git a/reactos/lib/sdk/crt/math/arm/__u64tos.s b/reactos/lib/sdk/crt/math/arm/__u64tos.s new file mode 100644 index 00000000000..828bc7fe55c --- /dev/null +++ b/reactos/lib/sdk/crt/math/arm/__u64tos.s @@ -0,0 +1,24 @@ +/* + * COPYRIGHT: BSD - See COPYING.ARM in the top level directory + * PROJECT: ReactOS CRT library + * PURPOSE: Implementation of __u64tos + * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include + +/* CODE **********************************************************************/ + + TEXTAREA + + LEAF_ENTRY __u64tos + + __assertfail + bx lr + + LEAF_END __u64tos + + END +/* EOF */ diff --git a/reactos/lib/sdk/crt/math/fabsf.c b/reactos/lib/sdk/crt/math/fabsf.c new file mode 100644 index 00000000000..611d94e8a20 --- /dev/null +++ b/reactos/lib/sdk/crt/math/fabsf.c @@ -0,0 +1,18 @@ +/* + * COPYRIGHT: BSD - See COPYING.ARM in the top level directory + * PROJECT: ReactOS CRT library + * PURPOSE: Implementation of fabsf + * PROGRAMMER: Timo Kreuzer + */ + +#include + +_Check_return_ +float +__cdecl +fabsf( + _In_ float x) +{ + return (float)fabs((double)x); +} +