|
2 | 2 |
|
3 | 3 | #![feature(test)]
|
4 | 4 |
|
5 |
| -extern crate num_integer; |
6 |
| -extern crate num_traits; |
7 | 5 | extern crate test;
|
8 | 6 |
|
9 | 7 | use num_integer::Integer;
|
@@ -125,42 +123,42 @@ macro_rules! bench_roots {
|
125 | 123 |
|
126 | 124 | #[bench]
|
127 | 125 | fn sqrt_rand(b: &mut Bencher) {
|
128 |
| - ::bench_rand_pos(b, $T::sqrt, 2); |
| 126 | + crate::bench_rand_pos(b, $T::sqrt, 2); |
129 | 127 | }
|
130 | 128 |
|
131 | 129 | #[bench]
|
132 | 130 | fn sqrt_small(b: &mut Bencher) {
|
133 |
| - ::bench_small_pos(b, $T::sqrt, 2); |
| 131 | + crate::bench_small_pos(b, $T::sqrt, 2); |
134 | 132 | }
|
135 | 133 |
|
136 | 134 | #[bench]
|
137 | 135 | fn cbrt_rand(b: &mut Bencher) {
|
138 |
| - ::bench_rand(b, $T::cbrt, 3); |
| 136 | + crate::bench_rand(b, $T::cbrt, 3); |
139 | 137 | }
|
140 | 138 |
|
141 | 139 | #[bench]
|
142 | 140 | fn cbrt_small(b: &mut Bencher) {
|
143 |
| - ::bench_small(b, $T::cbrt, 3); |
| 141 | + crate::bench_small(b, $T::cbrt, 3); |
144 | 142 | }
|
145 | 143 |
|
146 | 144 | #[bench]
|
147 | 145 | fn fourth_root_rand(b: &mut Bencher) {
|
148 |
| - ::bench_rand_pos(b, |x: &$T| x.nth_root(4), 4); |
| 146 | + crate::bench_rand_pos(b, |x: &$T| x.nth_root(4), 4); |
149 | 147 | }
|
150 | 148 |
|
151 | 149 | #[bench]
|
152 | 150 | fn fourth_root_small(b: &mut Bencher) {
|
153 |
| - ::bench_small_pos(b, |x: &$T| x.nth_root(4), 4); |
| 151 | + crate::bench_small_pos(b, |x: &$T| x.nth_root(4), 4); |
154 | 152 | }
|
155 | 153 |
|
156 | 154 | #[bench]
|
157 | 155 | fn fifth_root_rand(b: &mut Bencher) {
|
158 |
| - ::bench_rand(b, |x: &$T| x.nth_root(5), 5); |
| 156 | + crate::bench_rand(b, |x: &$T| x.nth_root(5), 5); |
159 | 157 | }
|
160 | 158 |
|
161 | 159 | #[bench]
|
162 | 160 | fn fifth_root_small(b: &mut Bencher) {
|
163 |
| - ::bench_small(b, |x: &$T| x.nth_root(5), 5); |
| 161 | + crate::bench_small(b, |x: &$T| x.nth_root(5), 5); |
164 | 162 | }
|
165 | 163 | }
|
166 | 164 | )*}
|
|
0 commit comments