summaryrefslogtreecommitdiff
path: root/lib/libc/arch/m68k/gen/fpgetsticky.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/m68k/gen/fpgetsticky.S')
-rw-r--r--lib/libc/arch/m68k/gen/fpgetsticky.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libc/arch/m68k/gen/fpgetsticky.S b/lib/libc/arch/m68k/gen/fpgetsticky.S
new file mode 100644
index 00000000000..bfac27fc5d1
--- /dev/null
+++ b/lib/libc/arch/m68k/gen/fpgetsticky.S
@@ -0,0 +1,11 @@
+/*
+ * Written by Charles M. Hannum, Apr 9, 1995
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+ENTRY(fpgetsticky)
+ fmovel fpsr,d0
+ bfextu d0{#24:#5},d0
+ rts