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