Andrew Kelley 0098e650fb update musl source files to v1.2.5
adds loongarch64 and riscv32
2024-06-04 16:54:14 -07:00

16 lines
164 B
C
Vendored

#include <math.h>
#if __riscv_flen >= 64
double fabs(double x)
{
__asm__ ("fabs.d %0, %1" : "=f"(x) : "f"(x));
return x;
}
#else
#include "../fabs.c"
#endif