summaryrefslogtreecommitdiff
path: root/src/math/powerpc64/sqrtf.c
blob: b6ecb106b687b790bb2228fbd6c1fe79ca820aa2 (plain) (blame)
1
2
3
4
5
6
7
#include <math.h>

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