diff options
Diffstat (limited to 'lib/libc/mips/gen/fpsetsticky.c')
-rw-r--r-- | lib/libc/mips/gen/fpsetsticky.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/libc/mips/gen/fpsetsticky.c b/lib/libc/mips/gen/fpsetsticky.c deleted file mode 100644 index 493c3a002970..000000000000 --- a/lib/libc/mips/gen/fpsetsticky.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Written by J.T. Conklin, Apr 11, 1995 - * Public domain. - */ - -#if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD$"; -#endif /* LIBC_SCCS and not lint */ - -#include <ieeefp.h> - -fp_except -fpsetsticky(sticky) - fp_except sticky; -{ - fp_except old; - fp_except new; - - __asm__("cfc1 %0,$31" : "=r" (old)); - - new = old; - new &= ~(0x1f << 2); - new |= ((sticky & 0x1f) << 2); - - __asm__("ctc1 %0,$31" : : "r" (new)); - - return (old >> 2) & 0x1f; -} |