Sign in
third-party-mirror
/
mingw-w64
/
518dd33c326f65684e8e938262b2a9ca94804cfb
/
.
/
mingw-w64-crt
/
math
/
sqrtl.c
blob: f0c823c928a35ba12f2a7ab0e07e5273f8366584 [
file
] [
log
] [
blame
]
#include
<math.h>
#include
<errno.h>
extern
long
double
__QNANL
;
long
double
sqrtl
(
long
double
x
)
{
if
(
x
<
0.0L
)
{
errno
=
EDOM
;
return
__QNANL
;
}
else
{
long
double
res
;
asm
(
"fsqrt"
:
"=t"
(
res
)
:
"0"
(
x
));
return
res
;
}
}