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 * ====================================================
11 #if !defined(_SOFT_FLOAT)
16 * Fast math version of lrintl(x)
17 * Return x rounded to integral value according to the prevailing
20 * Using inline x87 asms.
22 * Governed by x87 FPCR.
25 long int _f_lrintl (long double x
)
28 asm ("fistpl %0" : "=m" (_result
) : "t" (x
) : "st");
32 /* For now, there is only the fast math version so we use it. */
33 long int lrintl (long double x
) {
37 #endif /* !_SOFT_FLOAT */