summaryrefslogblamecommitdiff
path: root/src/math/mips/sqrtf.c
blob: 84090d2d31f48b39c7c0a3c4ec39014764c7162c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                   
#if !defined(__mips_soft_float) && __mips >= 2

#include <math.h>

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

#else

#include "../sqrtf.c"

#endif