/* $NetBSD: fpgetsticky.c,v 1.3 2002/01/13 21:45:49 thorpej Exp $ */ /* * Written by J.T. Conklin, Apr 10, 1995 * Public domain. */ #include #include "namespace.h" #include #ifdef __weak_alias __weak_alias(fpgetsticky,_fpgetsticky) #endif fp_except fpgetsticky() { int x; __asm__("st %%fsr,%0" : "=m" (*&x)); return (x >> 5) & 0x1f; }