about summary refs log tree commit diff
path: root/src/math/x86_64/sqrt.c
blob: 657e09e3b4d44b1cc12bf3300d7e5c5dc06c11ec (plain) (blame)
1
2
3
4
5
6
7
#include <math.h>

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