/* $OpenBSD: fpgetsticky.c,v 1.4 2013/01/05 11:20:55 miod Exp $ */ /* * Written by J.T. Conklin, Apr 10, 1995 * Public domain. * Ported to 88k by Nivas Madhur */ #include fp_except fpgetsticky() { int x; __asm__ volatile("fldcr %0, %%fcr62" : "=r" (x)); return x & 0x1f; }