2 * Written by J.T. Conklin, Apr 10, 1995
11 static const int map[] = {
12 1, /* round to nearest */
13 3, /* round to zero */
14 2, /* round to negative infinity */
15 0 /* round to positive infinity */
23 __asm("fnstcw %0" : "=m" (x));
24 return (map[(x >> 10) & 0x03]);