xref: /netbsd-src/lib/libc/arch/mips/gen/fpgetsticky.c (revision 9573504567626934c7ee01c7dce0c4bb1dfe7403)
1 /*
2  * Written by J.T. Conklin, Apr 11, 1995
3  * Public domain.
4  */
5 
6 #include <ieeefp.h>
7 
8 fp_except
9 fpgetsticky()
10 {
11 	int x;
12 
13 	__asm__("cfc1 %0,$31" : "=r" (x));
14 	return (x >> 2) & 0x1f;
15 }
16