Sign in
fuchsia
/
zircon
/
/
13ee3dc5e4c46bf127977ad28645c47442ec517d
/
.
/
third_party
/
ulib
/
musl
/
src
/
math
/
x86_64
/
acosl.S
blob: 2053f2677b8fe3d80c99c6cae424782caf77cc53 [
file
] [
log
] [
blame
]
# use acos(x) = atan2(fabs(sqrt((1-x)*(1+x))), x)
.global acosl
.type acosl
,@
function
acosl
:
.cfi_startproc
fldt
8
(
%rsp
)
1
:
fld %st
(
0
)
fld1
fsub
%st(0),%
st
(
1
)
fadd %st
(
2
)
fmulp
fsqrt
fabs
fxch %st
(
1
)
fpatan
ret
.cfi_endproc