fastmath.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #ifdef __sysvnecv70_target
  2. double EXFUN(fast_sin,(double));
  3. double EXFUN(fast_cos,(double));
  4. double EXFUN(fast_tan,(double));
  5. double EXFUN(fast_asin,(double));
  6. double EXFUN(fast_acos,(double));
  7. double EXFUN(fast_atan,(double));
  8. double EXFUN(fast_sinh,(double));
  9. double EXFUN(fast_cosh,(double));
  10. double EXFUN(fast_tanh,(double));
  11. double EXFUN(fast_asinh,(double));
  12. double EXFUN(fast_acosh,(double));
  13. double EXFUN(fast_atanh,(double));
  14. double EXFUN(fast_abs,(double));
  15. double EXFUN(fast_sqrt,(double));
  16. double EXFUN(fast_exp2,(double));
  17. double EXFUN(fast_exp10,(double));
  18. double EXFUN(fast_expe,(double));
  19. double EXFUN(fast_log10,(double));
  20. double EXFUN(fast_log2,(double));
  21. double EXFUN(fast_loge,(double));
  22. #define sin(x) fast_sin(x)
  23. #define cos(x) fast_cos(x)
  24. #define tan(x) fast_tan(x)
  25. #define asin(x) fast_asin(x)
  26. #define acos(x) fast_acos(x)
  27. #define atan(x) fast_atan(x)
  28. #define sinh(x) fast_sinh(x)
  29. #define cosh(x) fast_cosh(x)
  30. #define tanh(x) fast_tanh(x)
  31. #define asinh(x) fast_asinh(x)
  32. #define acosh(x) fast_acosh(x)
  33. #define atanh(x) fast_atanh(x)
  34. #define abs(x) fast_abs(x)
  35. #define sqrt(x) fast_sqrt(x)
  36. #define exp2(x) fast_exp2(x)
  37. #define exp10(x) fast_exp10(x)
  38. #define expe(x) fast_expe(x)
  39. #define log10(x) fast_log10(x)
  40. #define log2(x) fast_log2(x)
  41. #define loge(x) fast_loge(x)
  42. /* These functions are in assembler, they really do take floats. This
  43. can only be used with a real ANSI compiler */
  44. float EXFUN(fast_sinf,(float));
  45. float EXFUN(fast_cosf,(float));
  46. float EXFUN(fast_tanf,(float));
  47. float EXFUN(fast_asinf,(float));
  48. float EXFUN(fast_acosf,(float));
  49. float EXFUN(fast_atanf,(float));
  50. float EXFUN(fast_sinhf,(float));
  51. float EXFUN(fast_coshf,(float));
  52. float EXFUN(fast_tanhf,(float));
  53. float EXFUN(fast_asinhf,(float));
  54. float EXFUN(fast_acoshf,(float));
  55. float EXFUN(fast_atanhf,(float));
  56. float EXFUN(fast_absf,(float));
  57. float EXFUN(fast_sqrtf,(float));
  58. float EXFUN(fast_exp2f,(float));
  59. float EXFUN(fast_exp10f,(float));
  60. float EXFUN(fast_expef,(float));
  61. float EXFUN(fast_log10f,(float));
  62. float EXFUN(fast_log2f,(float));
  63. float EXFUN(fast_logef,(float));
  64. #define sinf(x) fast_sinf(x)
  65. #define cosf(x) fast_cosf(x)
  66. #define tanf(x) fast_tanf(x)
  67. #define asinf(x) fast_asinf(x)
  68. #define acosf(x) fast_acosf(x)
  69. #define atanf(x) fast_atanf(x)
  70. #define sinhf(x) fast_sinhf(x)
  71. #define coshf(x) fast_coshf(x)
  72. #define tanhf(x) fast_tanhf(x)
  73. #define asinhf(x) fast_asinhf(x)
  74. #define acoshf(x) fast_acoshf(x)
  75. #define atanhf(x) fast_atanhf(x)
  76. #define absf(x) fast_absf(x)
  77. #define sqrtf(x) fast_sqrtf(x)
  78. #define exp2f(x) fast_exp2f(x)
  79. #define exp10f(x) fast_exp10f(x)
  80. #define expef(x) fast_expef(x)
  81. #define log10f(x) fast_log10f(x)
  82. #define log2f(x) fast_log2f(x)
  83. #define logef(x) fast_logef(x)
  84. /* Override the functions defined in math.h */
  85. #endif /* __sysvnecv70_target */