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