fastmath.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. #ifdef _HAVE_STDC
  43. /* These functions are in assembler, they really do take floats. This
  44. can only be used with a real ANSI compiler */
  45. float EXFUN(fast_sinf,(float));
  46. float EXFUN(fast_cosf,(float));
  47. float EXFUN(fast_tanf,(float));
  48. float EXFUN(fast_asinf,(float));
  49. float EXFUN(fast_acosf,(float));
  50. float EXFUN(fast_atanf,(float));
  51. float EXFUN(fast_sinhf,(float));
  52. float EXFUN(fast_coshf,(float));
  53. float EXFUN(fast_tanhf,(float));
  54. float EXFUN(fast_asinhf,(float));
  55. float EXFUN(fast_acoshf,(float));
  56. float EXFUN(fast_atanhf,(float));
  57. float EXFUN(fast_absf,(float));
  58. float EXFUN(fast_sqrtf,(float));
  59. float EXFUN(fast_exp2f,(float));
  60. float EXFUN(fast_exp10f,(float));
  61. float EXFUN(fast_expef,(float));
  62. float EXFUN(fast_log10f,(float));
  63. float EXFUN(fast_log2f,(float));
  64. float EXFUN(fast_logef,(float));
  65. #define sinf(x) fast_sinf(x)
  66. #define cosf(x) fast_cosf(x)
  67. #define tanf(x) fast_tanf(x)
  68. #define asinf(x) fast_asinf(x)
  69. #define acosf(x) fast_acosf(x)
  70. #define atanf(x) fast_atanf(x)
  71. #define sinhf(x) fast_sinhf(x)
  72. #define coshf(x) fast_coshf(x)
  73. #define tanhf(x) fast_tanhf(x)
  74. #define asinhf(x) fast_asinhf(x)
  75. #define acoshf(x) fast_acoshf(x)
  76. #define atanhf(x) fast_atanhf(x)
  77. #define absf(x) fast_absf(x)
  78. #define sqrtf(x) fast_sqrtf(x)
  79. #define exp2f(x) fast_exp2f(x)
  80. #define exp10f(x) fast_exp10f(x)
  81. #define expef(x) fast_expef(x)
  82. #define log10f(x) fast_log10f(x)
  83. #define log2f(x) fast_log2f(x)
  84. #define logef(x) fast_logef(x)
  85. #endif
  86. /* Override the functions defined in math.h */
  87. #endif /* __sysvnecv70_target */