Home | History | Annotate | Line # | Download | only in gen
fpgetsticky.c revision 1.1
      1 /*	$NetBSD: fpgetsticky.c,v 1.1 1998/09/11 04:56:24 eeh Exp $	*/
      2 
      3 /*
      4  * Written by J.T. Conklin, Apr 10, 1995
      5  * Public domain.
      6  */
      7 
      8 #include <ieeefp.h>
      9 
     10 fp_except
     11 fpgetsticky()
     12 {
     13 	int x;
     14 
     15 	__asm__("st %%fsr,%0" : "=m" (*&x));
     16 	return (x >> 5) & 0x1f;
     17 }
     18