floor.c 160 B

123456789101112131415
  1. #include <math.h>
  2. #ifdef _ARCH_PWR5X
  3. double floor(double x)
  4. {
  5. __asm__ ("frim %0, %1" : "=d"(x) : "d"(x));
  6. return x;
  7. }
  8. #else
  9. #include "../floor.c"
  10. #endif