2 * ====================================================
3 * x87 FP implementation contributed to Newlib by
4 * Dave Korn, November 2007. This file is placed in the
5 * public domain. Permission to use, copy, modify, and
6 * distribute this software is freely granted.
7 * ====================================================
10 #if defined(__GNUC__) && !defined(_SOFT_FLOAT)
15 * Fast math version of rintf(x)
16 * Return x rounded to integral value according to the prevailing
19 * Using inline x87 asms.
21 * Governed by x87 FPCR.
24 float _f_rintf (float x
)
27 asm ("frndint" : "=t" (_result
) : "0" (x
));
31 #endif /* !__GNUC__ || _SOFT_FLOAT */