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

double sqrt(double x)
{
	__asm__ ("sqrtsd %1, %0" : "=x"(x) : "x"(x));
	return x;
}


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