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

int FXTOQ(void *rd, void *rs2)
{
	FP_DECL_Q(R);
	long a = *(long *)rs2;

	FP_FROM_INT_Q(R, a, 64, long);
	__FP_PACK_Q(rd, R);
	return 1;
}