summaryrefslogtreecommitdiffstats
path: root/arch/sparc/math-emu/fstod.c
blob: ea73660d82dc921322cc8238ab71fab531143b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "soft-fp.h"
#include "double.h"
#include "single.h"

int FSTOD(void *rd, void *rs2)
{
	FP_DECL_S(A); FP_DECL_D(R);

	__FP_UNPACK_S(A, rs2);
	FP_CONV(D,S,2,1,R,A);
	return __FP_PACK_D(rd, R);
}