filename | test/include/machine/fastmath.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Tue Feb 13 08:34:27 2007 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Add tests for FLOAT and FTRC Comment out user-mode exception test (broken) |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/include/machine/fastmath.h Tue Feb 13 08:34:27 2007 +00001.3 @@ -0,0 +1,100 @@1.4 +#ifdef __sysvnecv70_target1.5 +double EXFUN(fast_sin,(double));1.6 +double EXFUN(fast_cos,(double));1.7 +double EXFUN(fast_tan,(double));1.8 +1.9 +double EXFUN(fast_asin,(double));1.10 +double EXFUN(fast_acos,(double));1.11 +double EXFUN(fast_atan,(double));1.12 +1.13 +double EXFUN(fast_sinh,(double));1.14 +double EXFUN(fast_cosh,(double));1.15 +double EXFUN(fast_tanh,(double));1.16 +1.17 +double EXFUN(fast_asinh,(double));1.18 +double EXFUN(fast_acosh,(double));1.19 +double EXFUN(fast_atanh,(double));1.20 +1.21 +double EXFUN(fast_abs,(double));1.22 +double EXFUN(fast_sqrt,(double));1.23 +double EXFUN(fast_exp2,(double));1.24 +double EXFUN(fast_exp10,(double));1.25 +double EXFUN(fast_expe,(double));1.26 +double EXFUN(fast_log10,(double));1.27 +double EXFUN(fast_log2,(double));1.28 +double EXFUN(fast_loge,(double));1.29 +1.30 +1.31 +#define sin(x) fast_sin(x)1.32 +#define cos(x) fast_cos(x)1.33 +#define tan(x) fast_tan(x)1.34 +#define asin(x) fast_asin(x)1.35 +#define acos(x) fast_acos(x)1.36 +#define atan(x) fast_atan(x)1.37 +#define sinh(x) fast_sinh(x)1.38 +#define cosh(x) fast_cosh(x)1.39 +#define tanh(x) fast_tanh(x)1.40 +#define asinh(x) fast_asinh(x)1.41 +#define acosh(x) fast_acosh(x)1.42 +#define atanh(x) fast_atanh(x)1.43 +#define abs(x) fast_abs(x)1.44 +#define sqrt(x) fast_sqrt(x)1.45 +#define exp2(x) fast_exp2(x)1.46 +#define exp10(x) fast_exp10(x)1.47 +#define expe(x) fast_expe(x)1.48 +#define log10(x) fast_log10(x)1.49 +#define log2(x) fast_log2(x)1.50 +#define loge(x) fast_loge(x)1.51 +1.52 +#ifdef _HAVE_STDC1.53 +/* These functions are in assembler, they really do take floats. This1.54 + can only be used with a real ANSI compiler */1.55 +1.56 +float EXFUN(fast_sinf,(float));1.57 +float EXFUN(fast_cosf,(float));1.58 +float EXFUN(fast_tanf,(float));1.59 +1.60 +float EXFUN(fast_asinf,(float));1.61 +float EXFUN(fast_acosf,(float));1.62 +float EXFUN(fast_atanf,(float));1.63 +1.64 +float EXFUN(fast_sinhf,(float));1.65 +float EXFUN(fast_coshf,(float));1.66 +float EXFUN(fast_tanhf,(float));1.67 +1.68 +float EXFUN(fast_asinhf,(float));1.69 +float EXFUN(fast_acoshf,(float));1.70 +float EXFUN(fast_atanhf,(float));1.71 +1.72 +float EXFUN(fast_absf,(float));1.73 +float EXFUN(fast_sqrtf,(float));1.74 +float EXFUN(fast_exp2f,(float));1.75 +float EXFUN(fast_exp10f,(float));1.76 +float EXFUN(fast_expef,(float));1.77 +float EXFUN(fast_log10f,(float));1.78 +float EXFUN(fast_log2f,(float));1.79 +float EXFUN(fast_logef,(float));1.80 +#define sinf(x) fast_sinf(x)1.81 +#define cosf(x) fast_cosf(x)1.82 +#define tanf(x) fast_tanf(x)1.83 +#define asinf(x) fast_asinf(x)1.84 +#define acosf(x) fast_acosf(x)1.85 +#define atanf(x) fast_atanf(x)1.86 +#define sinhf(x) fast_sinhf(x)1.87 +#define coshf(x) fast_coshf(x)1.88 +#define tanhf(x) fast_tanhf(x)1.89 +#define asinhf(x) fast_asinhf(x)1.90 +#define acoshf(x) fast_acoshf(x)1.91 +#define atanhf(x) fast_atanhf(x)1.92 +#define absf(x) fast_absf(x)1.93 +#define sqrtf(x) fast_sqrtf(x)1.94 +#define exp2f(x) fast_exp2f(x)1.95 +#define exp10f(x) fast_exp10f(x)1.96 +#define expef(x) fast_expef(x)1.97 +#define log10f(x) fast_log10f(x)1.98 +#define log2f(x) fast_log2f(x)1.99 +#define logef(x) fast_logef(x)1.100 +#endif1.101 +/* Override the functions defined in math.h */1.102 +#endif /* __sysvnecv70_target */1.103 +
.