Stub routines for set|get fpsticky, fpround, ...
authorrahnds <rahnds@openbsd.org>
Thu, 2 Jan 1997 02:28:58 +0000 (02:28 +0000)
committerrahnds <rahnds@openbsd.org>
Thu, 2 Jan 1997 02:28:58 +0000 (02:28 +0000)
Fixing this is listed in the Todo section.

lib/libc/arch/powerpc/gen/fp.c [new file with mode: 0644]

diff --git a/lib/libc/arch/powerpc/gen/fp.c b/lib/libc/arch/powerpc/gen/fp.c
new file mode 100644 (file)
index 0000000..4249e86
--- /dev/null
@@ -0,0 +1,44 @@
+#if defined(LIBC_SCCS) && !defined(lint)
+static char rcsid[] = "$OpenBSD: fp.c,v 1.1 1997/01/02 02:28:58 rahnds Exp $";
+#endif /* LIBC_SCCS and not lint */
+#include <ieeefp.h>
+fp_except
+fpgetmask()
+{
+       return 0; /* stub --- XXX */ 
+}
+
+fp_rnd
+fpgetround()
+{
+       return 0; /* stub --- XXX */ 
+}
+
+fp_except
+fpsetmask(mask)
+       fp_except mask;
+{
+       return 0; /* stub --- XXX */ 
+}
+
+fp_rnd
+fpsetround(rnd_dir)
+       fp_rnd rnd_dir;
+{
+       return 0; /* stub --- XXX */ 
+}
+
+fp_except
+fpsetsticky(sticky)
+       fp_except sticky;
+{
+       return 0; /* stub --- XXX */ 
+}
+
+fp_except
+fpgetsticky()
+{
+       return 0; /* stub --- XXX */ 
+}