Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
math
/
powerpc
/
sqrt.c
blob: 8718dbd0ca7b4086fc1ebb2e7cd3b2e6eb3a20e2 [
file
] [
log
] [
blame
]
#include
<math.h>
#if !defined _SOFT_FLOAT && defined _ARCH_PPCSQ
double
sqrt
(
double
x
)
{
__asm__
(
"fsqrt %0, %1\n"
:
"=d"
(
x
)
:
"d"
(
x
));
return
x
;
}
#else
#include
"../sqrt.c"
#endif