1 /*
2 Copyright (C) 1991 DJ Delorie
3 All rights reserved.
4 
5 Redistribution, modification, and use in source and binary forms is permitted
6 provided that the above copyright notice and following paragraph are
7 duplicated in all such forms.
8 
9 This file is distributed WITHOUT ANY WARRANTY; without even the implied
10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 #ifdef __sysvnecv70_target
13 double EXFUN(fast_sin,(double));
14 double EXFUN(fast_cos,(double));
15 double EXFUN(fast_tan,(double));
16 
17 double EXFUN(fast_asin,(double));
18 double EXFUN(fast_acos,(double));
19 double EXFUN(fast_atan,(double));
20 
21 double EXFUN(fast_sinh,(double));
22 double EXFUN(fast_cosh,(double));
23 double EXFUN(fast_tanh,(double));
24 
25 double EXFUN(fast_asinh,(double));
26 double EXFUN(fast_acosh,(double));
27 double EXFUN(fast_atanh,(double));
28 
29 double EXFUN(fast_abs,(double));
30 double EXFUN(fast_sqrt,(double));
31 double EXFUN(fast_exp2,(double));
32 double EXFUN(fast_exp10,(double));
33 double EXFUN(fast_expe,(double));
34 double EXFUN(fast_log10,(double));
35 double EXFUN(fast_log2,(double));
36 double EXFUN(fast_loge,(double));
37 
38 
39 #define	sin(x)		fast_sin(x)
40 #define	cos(x)		fast_cos(x)
41 #define	tan(x)		fast_tan(x)
42 #define	asin(x)		fast_asin(x)
43 #define	acos(x)		fast_acos(x)
44 #define	atan(x)		fast_atan(x)
45 #define	sinh(x)		fast_sinh(x)
46 #define	cosh(x)		fast_cosh(x)
47 #define	tanh(x)		fast_tanh(x)
48 #define	asinh(x)	fast_asinh(x)
49 #define	acosh(x)	fast_acosh(x)
50 #define	atanh(x)	fast_atanh(x)
51 #define	abs(x)		fast_abs(x)
52 #define	sqrt(x)		fast_sqrt(x)
53 #define	exp2(x)		fast_exp2(x)
54 #define	exp10(x)	fast_exp10(x)
55 #define	expe(x)		fast_expe(x)
56 #define	log10(x)	fast_log10(x)
57 #define	log2(x)		fast_log2(x)
58 #define	loge(x)		fast_loge(x)
59 
60 /* These functions are in assembler, they really do take floats. This
61    can only be used with a real ANSI compiler */
62 
63 float EXFUN(fast_sinf,(float));
64 float EXFUN(fast_cosf,(float));
65 float EXFUN(fast_tanf,(float));
66 
67 float EXFUN(fast_asinf,(float));
68 float EXFUN(fast_acosf,(float));
69 float EXFUN(fast_atanf,(float));
70 
71 float EXFUN(fast_sinhf,(float));
72 float EXFUN(fast_coshf,(float));
73 float EXFUN(fast_tanhf,(float));
74 
75 float EXFUN(fast_asinhf,(float));
76 float EXFUN(fast_acoshf,(float));
77 float EXFUN(fast_atanhf,(float));
78 
79 float EXFUN(fast_absf,(float));
80 float EXFUN(fast_sqrtf,(float));
81 float EXFUN(fast_exp2f,(float));
82 float EXFUN(fast_exp10f,(float));
83 float EXFUN(fast_expef,(float));
84 float EXFUN(fast_log10f,(float));
85 float EXFUN(fast_log2f,(float));
86 float EXFUN(fast_logef,(float));
87 #define	sinf(x)		fast_sinf(x)
88 #define	cosf(x)		fast_cosf(x)
89 #define	tanf(x)		fast_tanf(x)
90 #define	asinf(x)	fast_asinf(x)
91 #define	acosf(x)	fast_acosf(x)
92 #define	atanf(x)	fast_atanf(x)
93 #define	sinhf(x)	fast_sinhf(x)
94 #define	coshf(x)	fast_coshf(x)
95 #define	tanhf(x)	fast_tanhf(x)
96 #define	asinhf(x)	fast_asinhf(x)
97 #define	acoshf(x)	fast_acoshf(x)
98 #define	atanhf(x)	fast_atanhf(x)
99 #define	absf(x)		fast_absf(x)
100 #define	sqrtf(x)	fast_sqrtf(x)
101 #define	exp2f(x)	fast_exp2f(x)
102 #define	exp10f(x)	fast_exp10f(x)
103 #define	expef(x)	fast_expef(x)
104 #define	log10f(x)	fast_log10f(x)
105 #define	log2f(x)	fast_log2f(x)
106 #define	logef(x)	fast_logef(x)
107 /* Override the functions defined in math.h */
108 #endif /* __sysvnecv70_target */
109 
110