summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/math-emu/fxtoq.c
blob: 411e515715c638b6cefc927baeaba0af58d4829d (plain)
1
2
3
4
5
6
7
8
9
10
11
#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);
	return __FP_PACK_Q(rd, R);
}