frsp.c 405 B

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