summaryrefslogtreecommitdiff
path: root/src/math/mips/fabsf.c
blob: 35307be6abae62c3d39a4d9e6ac564bb12e0d071 (plain) (blame)
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>

float fabsf(float x)
{
	float r;
	__asm__("abs.s %0,%1" : "=f"(r) : "f"(x));
	return r;
}

#else

#include "../fabsf.c"

#endif