frsp.c 490 B

1234567891011121314151617181920212223242526272829
  1. #include <linux/types.h>
  2. #include <linux/errno.h>
  3. #include <asm/uaccess.h>
  4. #include <asm/sfp-machine.h>
  5. #include <math-emu/soft-fp.h>
  6. #include <math-emu/double.h>
  7. #include <math-emu/single.h>
  8. int
  9. frsp(void *frD, void *frB)
  10. {
  11. FP_DECL_D(B);
  12. FP_DECL_EX;
  13. #ifdef DEBUG
  14. printk("%s: D %p, B %p\n", __func__, frD, frB);
  15. #endif
  16. FP_UNPACK_DP(B, frB);
  17. #ifdef DEBUG
  18. printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c);
  19. #endif
  20. __FP_PACK_DS(frD, B);
  21. return FP_CUR_EXCEPTIONS;
  22. }