Skip to content

Commit da25087

Browse files
committed
Test a more useful pointer
1 parent f10e591 commit da25087

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

crates/core_simd/tests/pointers.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,40 @@ macro_rules! common_tests {
77
test_helpers::test_lanes! {
88
fn is_null<const LANES: usize>() {
99
test_helpers::test_unary_mask_elementwise(
10-
&Simd::<*$constness (), LANES>::is_null,
11-
&<*$constness ()>::is_null,
10+
&Simd::<*$constness u32, LANES>::is_null,
11+
&<*$constness u32>::is_null,
1212
&|_| true,
1313
);
1414
}
1515

1616
fn addr<const LANES: usize>() {
1717
test_helpers::test_unary_elementwise(
18-
&Simd::<*$constness (), LANES>::addr,
19-
&<*$constness ()>::addr,
18+
&Simd::<*$constness u32, LANES>::addr,
19+
&<*$constness u32>::addr,
2020
&|_| true,
2121
);
2222
}
2323

2424
fn wrapping_offset<const LANES: usize>() {
2525
test_helpers::test_binary_elementwise(
26-
&Simd::<*$constness (), LANES>::wrapping_offset,
27-
&<*$constness ()>::wrapping_offset,
26+
&Simd::<*$constness u32, LANES>::wrapping_offset,
27+
&<*$constness u32>::wrapping_offset,
2828
&|_, _| true,
2929
);
3030
}
3131

3232
fn wrapping_add<const LANES: usize>() {
3333
test_helpers::test_binary_elementwise(
34-
&Simd::<*$constness (), LANES>::wrapping_add,
35-
&<*$constness ()>::wrapping_add,
34+
&Simd::<*$constness u32, LANES>::wrapping_add,
35+
&<*$constness u32>::wrapping_add,
3636
&|_, _| true,
3737
);
3838
}
3939

4040
fn wrapping_sub<const LANES: usize>() {
4141
test_helpers::test_binary_elementwise(
42-
&Simd::<*$constness (), LANES>::wrapping_sub,
43-
&<*$constness ()>::wrapping_sub,
42+
&Simd::<*$constness u32, LANES>::wrapping_sub,
43+
&<*$constness u32>::wrapping_sub,
4444
&|_, _| true,
4545
);
4646
}

0 commit comments

Comments
 (0)