about summary refs log tree commit diff
path: root/src/math/powerpc/sqrt.c
blob: 8718dbd0ca7b4086fc1ebb2e7cd3b2e6eb3a20e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>

#if !defined _SOFT_FLOAT && defined _ARCH_PPCSQ

double sqrt(double x)
{
	__asm__ ("fsqrt %0, %1\n" : "=d" (x) : "d" (x));
	return x;
}

#else

#include "../sqrt.c"

#endif