1 /* 2 * Written by J.T. Conklin, Apr 10, 1995 3 * Public domain. 4 * Ported to 88k by Nivas Madhur. 5 */ 6 7 #include <ieeefp.h> 8 9 fp_except 10 fpgetmask() 11 { 12 int x; 13 14 __asm__ volatile ("fldcr %0,fcr63" : "=r" (x)); 15 return (x & 0x1f); 16 } 17