summaryrefslogtreecommitdiff
path: root/src/math/arm/fabsf.c
blob: 28153a61e01ade8524c5109d907e9430cd3ae36a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>

#if __ARM_PCS_VFP

float fabsf(float x)
{
	__asm__ ("vabs.f32 %0, %1" : "=t"(x) : "t"(x));
	return x;
}

#else

#include "../fabsf.c"

#endif