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

float sqrtf(float x)
{
	__asm__ ("sqrtss %1, %0" : "=x"(x) : "x"(x));
	return x;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif