summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/math-emu/fsqrtq.c
blob: 8f84aa850f21559aa2ee3b4b43c2fb72ebaee5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "soft-fp.h"
#include "quad.h"

int FSQRTQ(void *rd, void *rs2)
{
	FP_DECL_Q(A); FP_DECL_Q(R);
        
	__FP_UNPACK_Q(A, rs2);
	FP_SQRT_Q(R, A);
	__FP_PACK_Q(rd, R);
	return 1;
}