Sign in
cobalt
/
cobalt
/
cf191b148f6a83454a62c5b73e5db05ad9cd362b
/
.
/
third_party
/
musl
/
src
/
math
/
aarch64
/
lrint.c
blob: cb7785ad1e419c076a90064752d561b3dd01b0db [
file
] [
log
] [
blame
]
#include
<math.h>
long
lrint
(
double
x
)
{
long
n
;
__asm__
(
"frintx %d1, %d1\n"
"fcvtzs %x0, %d1\n"
:
"=r"
(
n
),
"+w"
(
x
));
return
n
;
}