@@ -28,26 +28,15 @@ pub mod c_double {
2828 pub fn atan ( n : c_double ) -> c_double ;
2929 pub fn atan2 ( a : c_double , b : c_double ) -> c_double ;
3030 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 ;
3431 pub fn cosh ( n : c_double ) -> c_double ;
3532 pub fn erf ( n : c_double ) -> c_double ;
3633 pub fn erfc ( n : c_double ) -> c_double ;
37- pub fn exp ( n : c_double ) -> c_double ;
3834 // rename: for consistency with underscore usage elsewhere
3935 #[ link_name="expm1" ]
4036 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 ;
4437 // rename: for clarity and consistency with add/sub/mul/div
4538 #[ link_name="fdim" ]
4639 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 ;
5140 #[ link_name="fmax" ]
5241 pub fn fmax ( a : c_double , b : c_double ) -> c_double ;
5342 #[ link_name="fmin" ]
@@ -63,34 +52,22 @@ pub mod c_double {
6352 #[ cfg( windows) ]
6453 #[ link_name="__lgamma_r" ]
6554 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 ;
6955 // renamed: "logb" /often/ is confused for log2 by beginners
7056 #[ link_name="logb" ]
7157 pub fn log_radix ( n : c_double ) -> c_double ;
7258 // renamed: to be consitent with log as ln
7359 #[ link_name="log1p" ]
7460 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 ;
7761 #[ link_name="ilogb" ]
7862 pub fn ilog_radix ( n : c_double ) -> c_int ;
7963 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 ;
8464 // rename: for consistency with logradix
8565 #[ link_name="scalbn" ]
8666 pub fn ldexp_radix ( n : c_double , i : c_int ) -> c_double ;
87- pub fn sin ( n : c_double ) -> c_double ;
8867 pub fn sinh ( n : c_double ) -> c_double ;
89- pub fn sqrt ( n : c_double ) -> c_double ;
9068 pub fn tan ( n : c_double ) -> c_double ;
9169 pub fn tanh ( n : c_double ) -> c_double ;
9270 pub fn tgamma ( n : c_double ) -> c_double ;
93- pub fn trunc ( n : c_double ) -> c_double ;
9471
9572 // These are commonly only available for doubles
9673
@@ -121,34 +98,18 @@ pub mod c_float {
12198 pub fn atan2 ( a : c_float , b : c_float ) -> c_float ;
12299 #[ link_name="cbrtf" ]
123100 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 ;
130101 #[ link_name="coshf" ]
131102 pub fn cosh ( n : c_float ) -> c_float ;
132103 #[ link_name="erff" ]
133104 pub fn erf ( n : c_float ) -> c_float ;
134105 #[ link_name="erfcf" ]
135106 pub fn erfc ( n : c_float ) -> c_float ;
136- #[ link_name="expf" ]
137- pub fn exp ( n : c_float ) -> c_float ;
138107 #[ link_name="expm1f" ]
139108 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 ;
144109 #[ link_name="fdimf" ]
145110 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 ;
148111 #[ link_name="frexpf" ]
149112 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 ;
152113 #[ link_name="fmaxf" ]
153114 pub fn fmax ( a : c_float , b : c_float ) -> c_float ;
154115 #[ link_name="fminf" ]
@@ -168,41 +129,23 @@ pub mod c_float {
168129 #[ link_name="__lgammaf_r" ]
169130 pub fn lgamma ( n : c_float , sign : & mut c_int ) -> c_float ;
170131
171- #[ link_name="logf" ]
172- pub fn ln ( n : c_float ) -> c_float ;
173132 #[ link_name="logbf" ]
174133 pub fn log_radix ( n : c_float ) -> c_float ;
175134 #[ link_name="log1pf" ]
176135 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 ;
181136 #[ link_name="ilogbf" ]
182137 pub fn ilog_radix ( n : c_float ) -> c_int ;
183138 #[ link_name="modff" ]
184139 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 ;
191140 #[ link_name="scalbnf" ]
192141 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 ;
195142 #[ link_name="sinhf" ]
196143 pub fn sinh ( n : c_float ) -> c_float ;
197- #[ link_name="sqrtf" ]
198- pub fn sqrt ( n : c_float ) -> c_float ;
199144 #[ link_name="tanf" ]
200145 pub fn tan ( n : c_float ) -> c_float ;
201146 #[ link_name="tanhf" ]
202147 pub fn tanh ( n : c_float ) -> c_float ;
203148 #[ link_name="tgammaf" ]
204149 pub fn tgamma ( n : c_float ) -> c_float ;
205- #[ link_name="truncf" ]
206- pub fn trunc ( n : c_float ) -> c_float ;
207150 }
208151}
0 commit comments