source: trunk/libs/newlib/src/newlib/libc/include/machine/fastmath.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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