fabs.c 177 B

123456789101112131415
  1. #include <math.h>
  2. #if __ARM_PCS_VFP && __ARM_FP&8
  3. double fabs(double x)
  4. {
  5. __asm__ ("vabs.f64 %P0, %P1" : "=w"(x) : "w"(x));
  6. return x;
  7. }
  8. #else
  9. #include "../fabs.c"
  10. #endif