diff options
Diffstat (limited to 'arch/sparc64/math-emu/fxtoq.c')
-rw-r--r-- | arch/sparc64/math-emu/fxtoq.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sparc64/math-emu/fxtoq.c b/arch/sparc64/math-emu/fxtoq.c new file mode 100644 index 000000000..7c2f7df48 --- /dev/null +++ b/arch/sparc64/math-emu/fxtoq.c @@ -0,0 +1,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; +} |