fabs.c 274 B

12345678910111213141516171819
  1. #include <linux/types.h>
  2. #include <linux/errno.h>
  3. #include <asm/uaccess.h>
  4. int
  5. fabs(u32 *frD, u32 *frB)
  6. {
  7. frD[0] = frB[0] & 0x7fffffff;
  8. frD[1] = frB[1];
  9. #ifdef DEBUG
  10. printk("%s: D %p, B %p: ", __func__, frD, frB);
  11. dump_double(frD);
  12. printk("\n");
  13. #endif
  14. return 0;
  15. }