Sign in
third-party-mirror
/
mingw-w64
/
518dd33c326f65684e8e938262b2a9ca94804cfb
/
.
/
mingw-w64-crt
/
math
/
sqrtf.c
blob: 725a61d098df7d9bf2831fc2f8bed7f1caa13f88 [
file
] [
log
] [
blame
]
#include
<math.h>
#include
<errno.h>
extern
float
__QNANF
;
float
sqrtf
(
float
x
)
{
if
(
x
<
0.0F
)
{
errno
=
EDOM
;
return
__QNANF
;
}
else
{
float
res
;
asm
(
"fsqrt"
:
"=t"
(
res
)
:
"0"
(
x
));
return
res
;
}
}