Skip to content

Commit f0abd6c

Browse files
authored
Check last bit when checking parity (#17)
* Check last bit when checking parity * Revert "Check last bit when checking parity" This reverts commit 6f2db79. * Remove TODO about using last bit to check parity
1 parent 8c84cf7 commit f0abd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

downsample_rs/src/minmax/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ where
5858
Tx: Num + FromPrimitive + AsPrimitive<f64> + Send + Sync,
5959
Ty: Copy + PartialOrd + Send + Sync,
6060
{
61-
assert_eq!(n_out % 2, 0); // TODO can be faster (check last bit)
61+
assert_eq!(n_out % 2, 0);
6262
let bin_idx_iterator = get_equidistant_bin_idx_iterator_parallel(x, n_out / 2);
6363
min_max_generic_with_x_parallel(arr, bin_idx_iterator, n_out, |arr| arr.argminmax())
6464
}

0 commit comments

Comments
 (0)