summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/math/mips/fabs.c
blob: 0a5aa3b1d4ccb2a3405102ff2d85b479cd4a5010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#if !defined(__mips_soft_float) && defined(__mips_abs2008)

#include <math.h>

double fabs(double x)
{
	double r;
	__asm__("abs.d %0,%1" : "=f"(r) : "f"(x));
	return r;
}

#else

#include "../fabs.c"

#endif