Sign in
android
/
platform
/
external
/
musl
/
3da2b5cceae98f5098e62e7865fe6433c1e82775
/
.
/
src
/
math
/
riscv64
/
fma.c
blob: 99b057130187751454183d1f97faad6da45e25a4 [
file
] [
log
] [
blame
]
#include
<math.h>
#if __riscv_flen >= 64
double
fma
(
double
x
,
double
y
,
double
z
)
{
__asm__
(
"fmadd.d %0, %1, %2, %3"
:
"=f"
(
x
)
:
"f"
(
x
),
"f"
(
y
),
"f"
(
z
));
return
x
;
}
#else
#include
"../fma.c"
#endif