@@ -28,26 +28,15 @@ pub mod c_double {
28
28
pub fn atan ( n : c_double ) -> c_double ;
29
29
pub fn atan2 ( a : c_double , b : c_double ) -> c_double ;
30
30
pub fn cbrt ( n : c_double ) -> c_double ;
31
- pub fn ceil ( n : c_double ) -> c_double ;
32
- pub fn copysign ( x : c_double , y : c_double ) -> c_double ;
33
- pub fn cos ( n : c_double ) -> c_double ;
34
31
pub fn cosh ( n : c_double ) -> c_double ;
35
32
pub fn erf ( n : c_double ) -> c_double ;
36
33
pub fn erfc ( n : c_double ) -> c_double ;
37
- pub fn exp ( n : c_double ) -> c_double ;
38
34
// rename: for consistency with underscore usage elsewhere
39
35
#[ link_name="expm1" ]
40
36
pub fn exp_m1 ( n : c_double ) -> c_double ;
41
- pub fn exp2 ( n : c_double ) -> c_double ;
42
- #[ link_name="fabs" ]
43
- pub fn abs ( n : c_double ) -> c_double ;
44
37
// rename: for clarity and consistency with add/sub/mul/div
45
38
#[ link_name="fdim" ]
46
39
pub fn abs_sub ( a : c_double , b : c_double ) -> c_double ;
47
- pub fn floor ( n : c_double ) -> c_double ;
48
- // rename: for clarity and consistency with add/sub/mul/div
49
- #[ link_name="fma" ]
50
- pub fn mul_add ( a : c_double , b : c_double , c : c_double ) -> c_double ;
51
40
#[ link_name="fmax" ]
52
41
pub fn fmax ( a : c_double , b : c_double ) -> c_double ;
53
42
#[ link_name="fmin" ]
@@ -63,34 +52,22 @@ pub mod c_double {
63
52
#[ cfg( windows) ]
64
53
#[ link_name="__lgamma_r" ]
65
54
pub fn lgamma ( n : c_double , sign : & mut c_int ) -> c_double ;
66
- // renamed: ln seems more natural
67
- #[ link_name="log" ]
68
- pub fn ln ( n : c_double ) -> c_double ;
69
55
// renamed: "logb" /often/ is confused for log2 by beginners
70
56
#[ link_name="logb" ]
71
57
pub fn log_radix ( n : c_double ) -> c_double ;
72
58
// renamed: to be consitent with log as ln
73
59
#[ link_name="log1p" ]
74
60
pub fn ln_1p ( n : c_double ) -> c_double ;
75
- pub fn log10 ( n : c_double ) -> c_double ;
76
- pub fn log2 ( n : c_double ) -> c_double ;
77
61
#[ link_name="ilogb" ]
78
62
pub fn ilog_radix ( n : c_double ) -> c_int ;
79
63
pub fn modf ( n : c_double , iptr : & mut c_double ) -> c_double ;
80
- pub fn pow ( n : c_double , e : c_double ) -> c_double ;
81
- // FIXME (#1379): enable when rounding modes become available
82
- // fn rint(n: c_double) -> c_double;
83
- pub fn round ( n : c_double ) -> c_double ;
84
64
// rename: for consistency with logradix
85
65
#[ link_name="scalbn" ]
86
66
pub fn ldexp_radix ( n : c_double , i : c_int ) -> c_double ;
87
- pub fn sin ( n : c_double ) -> c_double ;
88
67
pub fn sinh ( n : c_double ) -> c_double ;
89
- pub fn sqrt ( n : c_double ) -> c_double ;
90
68
pub fn tan ( n : c_double ) -> c_double ;
91
69
pub fn tanh ( n : c_double ) -> c_double ;
92
70
pub fn tgamma ( n : c_double ) -> c_double ;
93
- pub fn trunc ( n : c_double ) -> c_double ;
94
71
95
72
// These are commonly only available for doubles
96
73
@@ -121,34 +98,18 @@ pub mod c_float {
121
98
pub fn atan2 ( a : c_float , b : c_float ) -> c_float ;
122
99
#[ link_name="cbrtf" ]
123
100
pub fn cbrt ( n : c_float ) -> c_float ;
124
- #[ link_name="ceilf" ]
125
- pub fn ceil ( n : c_float ) -> c_float ;
126
- #[ link_name="copysignf" ]
127
- pub fn copysign ( x : c_float , y : c_float ) -> c_float ;
128
- #[ link_name="cosf" ]
129
- pub fn cos ( n : c_float ) -> c_float ;
130
101
#[ link_name="coshf" ]
131
102
pub fn cosh ( n : c_float ) -> c_float ;
132
103
#[ link_name="erff" ]
133
104
pub fn erf ( n : c_float ) -> c_float ;
134
105
#[ link_name="erfcf" ]
135
106
pub fn erfc ( n : c_float ) -> c_float ;
136
- #[ link_name="expf" ]
137
- pub fn exp ( n : c_float ) -> c_float ;
138
107
#[ link_name="expm1f" ]
139
108
pub fn exp_m1 ( n : c_float ) -> c_float ;
140
- #[ link_name="exp2f" ]
141
- pub fn exp2 ( n : c_float ) -> c_float ;
142
- #[ link_name="fabsf" ]
143
- pub fn abs ( n : c_float ) -> c_float ;
144
109
#[ link_name="fdimf" ]
145
110
pub fn abs_sub ( a : c_float , b : c_float ) -> c_float ;
146
- #[ link_name="floorf" ]
147
- pub fn floor ( n : c_float ) -> c_float ;
148
111
#[ link_name="frexpf" ]
149
112
pub fn frexp ( n : c_float , value : & mut c_int ) -> c_float ;
150
- #[ link_name="fmaf" ]
151
- pub fn mul_add ( a : c_float , b : c_float , c : c_float ) -> c_float ;
152
113
#[ link_name="fmaxf" ]
153
114
pub fn fmax ( a : c_float , b : c_float ) -> c_float ;
154
115
#[ link_name="fminf" ]
@@ -168,41 +129,23 @@ pub mod c_float {
168
129
#[ link_name="__lgammaf_r" ]
169
130
pub fn lgamma ( n : c_float , sign : & mut c_int ) -> c_float ;
170
131
171
- #[ link_name="logf" ]
172
- pub fn ln ( n : c_float ) -> c_float ;
173
132
#[ link_name="logbf" ]
174
133
pub fn log_radix ( n : c_float ) -> c_float ;
175
134
#[ link_name="log1pf" ]
176
135
pub fn ln_1p ( n : c_float ) -> c_float ;
177
- #[ link_name="log2f" ]
178
- pub fn log2 ( n : c_float ) -> c_float ;
179
- #[ link_name="log10f" ]
180
- pub fn log10 ( n : c_float ) -> c_float ;
181
136
#[ link_name="ilogbf" ]
182
137
pub fn ilog_radix ( n : c_float ) -> c_int ;
183
138
#[ link_name="modff" ]
184
139
pub fn modf ( n : c_float , iptr : & mut c_float ) -> c_float ;
185
- #[ link_name="powf" ]
186
- pub fn pow ( n : c_float , e : c_float ) -> c_float ;
187
- // FIXME (#1379): enable when rounding modes become available
188
- // #[link_name="rintf"] fn rint(n: c_float) -> c_float;
189
- #[ link_name="roundf" ]
190
- pub fn round ( n : c_float ) -> c_float ;
191
140
#[ link_name="scalbnf" ]
192
141
pub fn ldexp_radix ( n : c_float , i : c_int ) -> c_float ;
193
- #[ link_name="sinf" ]
194
- pub fn sin ( n : c_float ) -> c_float ;
195
142
#[ link_name="sinhf" ]
196
143
pub fn sinh ( n : c_float ) -> c_float ;
197
- #[ link_name="sqrtf" ]
198
- pub fn sqrt ( n : c_float ) -> c_float ;
199
144
#[ link_name="tanf" ]
200
145
pub fn tan ( n : c_float ) -> c_float ;
201
146
#[ link_name="tanhf" ]
202
147
pub fn tanh ( n : c_float ) -> c_float ;
203
148
#[ link_name="tgammaf" ]
204
149
pub fn tgamma ( n : c_float ) -> c_float ;
205
- #[ link_name="truncf" ]
206
- pub fn trunc ( n : c_float ) -> c_float ;
207
150
}
208
151
}
0 commit comments