Sign in
third-party-mirror
/
mingw-w64
/
518dd33c326f65684e8e938262b2a9ca94804cfb
/
.
/
mingw-w64-crt
/
math
/
lrint.c
blob: 7f2f94cd025fdf132551adcfb013a96b2339983a [
file
] [
log
] [
blame
]
#include
<math.h>
long
lrint
(
double
x
)
{
long
retval
;
__asm__ __volatile__ \
(
"fistpl %0"
:
"=m"
(
retval
)
:
"t"
(
x
)
:
"st"
);
\
return
retval
;
}