Skip to content

Commit 1d22388

Browse files
committed
Fix too precise f32 constants
1 parent 1a2fd9f commit 1d22388

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/sinc_interpolator/sinc_interpolator_avx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ mod tests {
238238
wave.push(rng.gen::<f64>());
239239
}
240240
let sinc_len = 256;
241-
let f_cutoff = 0.9473371669037001;
241+
let f_cutoff = 0.94733715;
242242
let oversampling_factor = 256;
243243
let window = WindowFunction::BlackmanHarris2;
244244
let sincs = make_sincs::<f64>(sinc_len, oversampling_factor, f_cutoff, window);
@@ -265,7 +265,7 @@ mod tests {
265265
wave.push(rng.gen::<f32>());
266266
}
267267
let sinc_len = 256;
268-
let f_cutoff = 0.9473371669037001;
268+
let f_cutoff = 0.94733715;
269269
let oversampling_factor = 256;
270270
let window = WindowFunction::BlackmanHarris2;
271271
let sincs = make_sincs::<f32>(sinc_len, oversampling_factor, f_cutoff, window);

src/sinc_interpolator/sinc_interpolator_sse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ mod tests {
250250
wave.push(rng.gen::<f64>());
251251
}
252252
let sinc_len = 256;
253-
let f_cutoff = 0.9473371669037001;
253+
let f_cutoff = 0.94733715;
254254
let oversampling_factor = 256;
255255
let window = WindowFunction::BlackmanHarris2;
256256
let sincs = make_sincs::<f64>(sinc_len, oversampling_factor, f_cutoff, window);
@@ -269,7 +269,7 @@ mod tests {
269269
wave.push(rng.gen::<f32>());
270270
}
271271
let sinc_len = 256;
272-
let f_cutoff = 0.9473371669037001;
272+
let f_cutoff = 0.94733715;
273273
let oversampling_factor = 256;
274274
let window = WindowFunction::BlackmanHarris2;
275275
let sincs = make_sincs::<f32>(sinc_len, oversampling_factor, f_cutoff, window);

0 commit comments

Comments
 (0)