summaryrefslogtreecommitdiff
path: root/src/math/m68k/sqrtl.c
blob: b1c303c7e2696bd21ece2f50c85857b9dcb4c978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>

#if __HAVE_68881__

long double sqrtl(long double x)
{
	__asm__ ("fsqrt.x %1,%0" : "=f"(x) : "fm"(x));
	return x;
}

#else

#include "../sqrtl.c"

#endif