Sun Mar 3 08:43:44 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
authorroland <roland>
Tue, 5 Mar 1996 19:05:39 +0000 (19:05 +0000)
committerroland <roland>
Tue, 5 Mar 1996 19:05:39 +0000 (19:05 +0000)
Replace math code with fdlibm from Sun as modified for netbsd by
JT Conklin and Ian Taylor, including x86 FPU support.
* sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
* math/math_private.h: New file.
* sysdeps/i386/fpu/Implies: New file.
* sysdeps/ieee754/Implies: New file.
* math/machine/asm.h, math/machine/endian.h: New files.
* math/Makefile, math/math.h: Rewritten.
* mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
* math/finite.c: File removed.
* sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.

math/machine/asm.h [new file with mode: 0644]
math/machine/endian.h [new file with mode: 0644]
mathcalls.h [new file with mode: 0644]

diff --git a/math/machine/asm.h b/math/machine/asm.h
new file mode 100644 (file)
index 0000000..548e248
--- /dev/null
@@ -0,0 +1,10 @@
+/* The libm assembly code wants to include <machine/asm.h> to define the
+   ENTRY macro.  We define assembly-related macros in sysdep.h and
+   asm-syntax.h.  */
+
+#include <sysdep.h>
+#include <asm-syntax.h>
+
+/* The libm assembly code uses this macro for RCSid strings.
+   We don't put RCSid strings into object files.  */
+#define RCSID(id) /* ignore them */
diff --git a/math/machine/endian.h b/math/machine/endian.h
new file mode 100644 (file)
index 0000000..8880456
--- /dev/null
@@ -0,0 +1,4 @@
+/* math_private.h wants to include <machine/endian.h>; we provide this
+   file so it can, leaving math_private.h unmodified from the original.  */
+
+#include <endian.h>
diff --git a/mathcalls.h b/mathcalls.h
new file mode 100644 (file)
index 0000000..20e0854
--- /dev/null
@@ -0,0 +1 @@
+#include <math/mathcalls.h>