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

#if __VFP_FP__ && !__SOFTFP__

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

#else

#include "../sqrtf.c"

#endif