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); }