1 /* $OpenBSD: fpgetsticky.c,v 1.2 2005/08/07 16:40:15 espie Exp $ */ 2 /* 3 * Written by J.T. Conklin, Apr 11, 1995 4 * Public domain. 5 */ 6 7 #include <ieeefp.h> 8 9 fp_except 10 fpgetsticky() 11 { 12 int x; 13 14 __asm__("cfc1 %0,$31" : "=r" (x)); 15 return (x >> 2) & 0x1f; 16 } 17