2 * Written by J.T. Conklin, Apr 10, 1995
10 #include <machine/float.h>
12 static const int map[] = {
13 1, /* round to nearest */
14 0, /* round to zero */
15 2, /* round to positive infinity */
16 3 /* round to negative infinity */
24 __asm("st %%fsr,%0" : "=m" (*&x));
25 return map[(x >> 30) & 0x03];