[CRT]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 3 May 2015 18:15:19 +0000 (18:15 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 3 May 2015 18:15:19 +0000 (18:15 +0000)
- Implement portable fabsf.c
- Move some ARM stubs to a better location
- Add stubs for __dtoi64, __i64tos, __u64tos, _clearfp

svn path=/trunk/; revision=67537

reactos/lib/sdk/crt/float/arm/_clearfp.s [new file with mode: 0644]
reactos/lib/sdk/crt/float/arm/_controlfp.s [moved from reactos/lib/sdk/crt/math/arm/_controlfp.s with 100% similarity]
reactos/lib/sdk/crt/float/arm/_fpreset.s [moved from reactos/lib/sdk/crt/math/arm/_fpreset.s with 100% similarity]
reactos/lib/sdk/crt/float/arm/_statusfp.s [moved from reactos/lib/sdk/crt/math/arm/_statusfp.s with 100% similarity]
reactos/lib/sdk/crt/math/arm/__dtoi64.s [new file with mode: 0644]
reactos/lib/sdk/crt/math/arm/__i64tos.s [new file with mode: 0644]
reactos/lib/sdk/crt/math/arm/__u64tos.s [new file with mode: 0644]
reactos/lib/sdk/crt/math/fabsf.c [new file with mode: 0644]

diff --git a/reactos/lib/sdk/crt/float/arm/_clearfp.s b/reactos/lib/sdk/crt/float/arm/_clearfp.s
new file mode 100644 (file)
index 0000000..25275fe
--- /dev/null
@@ -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 <kxarm.h>
+
+/* CODE **********************************************************************/
+
+    TEXTAREA
+
+    LEAF_ENTRY _clearfp
+
+       __assertfail
+       bx      lr
+
+    LEAF_END _clearfp
+
+    END
+/* EOF */
diff --git a/reactos/lib/sdk/crt/math/arm/__dtoi64.s b/reactos/lib/sdk/crt/math/arm/__dtoi64.s
new file mode 100644 (file)
index 0000000..172d60f
--- /dev/null
@@ -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 <kxarm.h>
+
+/* 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 (file)
index 0000000..6f6c730
--- /dev/null
@@ -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 <kxarm.h>
+
+/* 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 (file)
index 0000000..828bc7f
--- /dev/null
@@ -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 <kxarm.h>
+
+/* 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 (file)
index 0000000..611d94e
--- /dev/null
@@ -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 <math.h>
+
+_Check_return_
+float
+__cdecl
+fabsf(
+    _In_ float x)
+{
+    return (float)fabs((double)x);
+}
+