Commit graph

778 commits

Author SHA1 Message Date
Caleb Zulawski
abd5d05ec4
Merge pull request #450 from programmerjake/update-llvm-workaround-comment
update llvm workaround comment to link to rust tracking issue too
2025-03-17 23:33:54 -04:00
Caleb Zulawski
c6596476bb
Merge pull request #455 from Urgau/deny-unreachable_pub
Deny `unreachable_pub` lint
2025-03-17 23:32:23 -04:00
Urgau
85d15a475b Deny unreachable_pub lint
As is done in `core` since https://github.com/rust-lang/rust/pull/134286

cc https://github.com/rust-lang/rust/issues/138054
2025-03-17 20:20:02 +01:00
Caleb Zulawski
74cddcaf4d
Merge pull request #454 from thaliaarchi/use-prelude-size-of
Use `size_of` from the prelude instead of imported
2025-03-07 01:50:09 -05:00
Thalia Archibald
c86f0a134c Use size_of from the prelude instead of imported
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.

These functions were added to all preludes in Rust 1.80.
2025-03-06 20:30:22 -08:00
Caleb Zulawski
b4f4785d9b
Merge pull request #451 from ehuss/rust-2024
Migrate core_simd to Rust 2024
2025-02-13 00:57:15 -05:00
Eric Huss
007e0f1898 Apply style_edition 2024 2025-02-12 16:49:46 -08:00
Eric Huss
2b5f6f05b5 Migrate core_simd to Rust 2024 2025-02-12 15:17:46 -08:00
Jacob Lifshay
d545e84eae
update llvm workaround comment to link to rust tracking issue too 2025-01-24 01:04:14 -08:00
Caleb Zulawski
3383cfbd35
Merge pull request #449 from rust-lang/subtree-sync-script
Add script for syncing subtree
2025-01-18 15:34:46 -05:00
Caleb Zulawski
15c19722de Add script for syncing subtree 2025-01-18 15:33:50 -05:00
Caleb Zulawski
4b1a23e4a0
Merge pull request #448 from rust-lang/sync-upstream
Sync upstream
2025-01-18 12:25:56 -05:00
Caleb Zulawski
638667a135 Remove stable features 2025-01-16 01:41:34 -05:00
Caleb Zulawski
a2c745e75d Merge branch 'sync-upstream-2025-01-16' into test 2025-01-16 01:40:05 -05:00
daxpedda
8423171f11 Bump stdarch 2024-12-24 19:00:57 +01:00
Caleb Zulawski
49176aebc6
Merge pull request #446 from AquaEBM/master
add rustc_const_unstable attribute to Simd::splat
2024-11-25 09:29:28 -05:00
AquaEBM
f6a227690e add rustc_const_unstable attribute to Simd::splat 2024-11-25 12:44:26 +01:00
Caleb Zulawski
b049c5097e
Merge pull request #444 from heiher/loong64-ci
ci: add support for loongarch64-unknown-linux-gnu
2024-11-04 00:58:44 -05:00
WANG Rui
35ac70a478 ci: add support for loongarch64-unknown-linux-gnu 2024-11-04 09:37:18 +08:00
Jubilee
5523a313b5
Merge rust-lang/portable-simd#438: Use -0.0 as the neutral additive float
-0.0 +  0.0 is  0.0
-0.0 + -0.0 is -0.0

Thus, the float additive-zero is -0.0, not its positive cousin.
This aligns with a recent change to the impl of Sum for floats,
in rust-lang/rust@4908188518
2024-10-22 15:45:24 -07:00
Hans Kratz
7e162d19dd
rust-lang/portable-simd#443: Add armv7 neon mplementation for Simd<u8, 16>::swizzle_dyn
Use arm neon intrinsics to swizzle two u8x8 blocks with a u8x8x2 lookup table.
2024-10-22 15:42:29 -07:00
Ralf Jung
6c1656df84 move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
Caleb Zulawski
158e2409fe
Merge pull request #441 from sammysheep/shift_elements
shift_elements_{left,right}
2024-09-27 22:38:36 -04:00
Samuel Shepard
9392fb1c2b Change mask function to accept bool 2024-09-27 21:27:47 -04:00
Sam Shepard
c9c0bf97f0
Update crates/core_simd/src/swizzle.rs
Co-authored-by: Caleb Zulawski <caleb.zulawski@gmail.com>
2024-09-27 21:05:07 -04:00
Sam Shepard
8cff838daa
Update crates/core_simd/src/swizzle.rs
Co-authored-by: Caleb Zulawski <caleb.zulawski@gmail.com>
2024-09-27 21:04:49 -04:00
Samuel Shepard
f5fea57028 Change API to accept a padding argument 2024-09-27 19:18:30 -04:00
Samuel Shepard
55b4b74a12 Add tests, make public 2024-09-27 15:12:58 -04:00
Samuel Shepard
c7d9ad8c2c Add shift_elements_{left,right} for Simd and Masks 2024-09-27 15:07:28 -04:00
Ralf Jung
2458792161 stabilize const_intrinsic_copy 2024-09-23 22:12:54 +02:00
Ralf Jung
4111fb2cbd simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
Jubilee Young
c080ba539f Exempt Arm v7 Neon from subnormal-related tests 2024-09-11 20:56:02 -07:00
Jubilee Young
00c3b6d68e Use -0.0 as the neutral additive float
-0.0 +  0.0 is  0.0
-0.0 + -0.0 is -0.0

Thus, the float additive-zero is actually -0.0, not its positive cousin.
This change aligns with a recent change to the impl of Sum for floats,
in rust-lang/rust@4908188518 and
accordingly we also have to use the latest toolchain for our tests now.
2024-09-11 19:40:12 -07:00
Caleb Zulawski
5fb43ca86f
Merge pull request #437 from AndrewScull/ctpop
Add count_ones() and count_zeros()
2024-09-11 19:00:19 -04:00
Andrew Scull
27e2832e87 Add count_ones() and count_zeros()
Implement on integer types using the simd_ctpop intrinsic.
2024-09-11 17:12:37 +00:00
Caleb Zulawski
e967f5e21c
Merge pull request #436 from trivikr/actions-checkout-v4
ci: bump actions/checkout to v4
2024-09-09 10:35:01 -04:00
Trivikram Kamat
b6222cb8e4
ci: bump actions/checkout to v4 2024-09-09 06:46:12 -07:00
Caleb Zulawski
1ef335ec0c
Merge pull request #435 from LaihoE/fix_ne_typo
fix typo in cmp_ne docs
2024-08-30 18:33:15 -04:00
Laiho
c535320c7e fix typo in cmp_ne docs 2024-08-31 00:28:39 +03:00
Caleb Zulawski
8fdb4f8882
Merge pull request #434 from gstvg/fix_swizzle_docs
Fix swizzle_mask docs
2024-08-29 01:16:52 -04:00
gstvg
bbcfdb5cbf fix: swizzle_mask docs 2024-08-29 01:53:13 -03:00
Caleb Zulawski
f6519c5d70
Merge pull request #431 from cvijdea-bd/fix-swizzle-dyn-vbmi
Fix avx512vbmi swizzle_dyn implementation
2024-08-26 21:30:39 -04:00
Cristi Vîjdea
d5abbfa978 Fix avx512vbmi swizzle_dyn implementation 2024-08-25 23:17:54 +03:00
Caleb Zulawski
4697d39413
Merge pull request #429 from okaneco/abs_diff
Add `abs_diff` function to `SimdInt` and `SimdUint` traits
2024-08-25 01:53:30 -04:00
okaneco
c992db6506 Add abs_diff function to SimdInt and SimdUint traits
Implement `abs_diff` for signed and unsigned integer vectors
2024-08-24 23:56:17 -04:00
Caleb Zulawski
283acf44cc
Merge pull request #422 from rust-lang/non-power-of-two-layout
Fix layout of non-power-of-two length vectors
2024-08-12 21:00:51 -04:00
Caleb Zulawski
d7d060a0bf Build test dependencies with optimization 2024-08-10 00:47:08 -04:00
Caleb Zulawski
2a3b8ad223 Reduce proptest iterations 2024-08-08 21:14:37 -04:00
Caleb Zulawski
7f6a981b26 Disable testing most lanes to improve CI times 2024-08-07 23:17:39 -04:00
Caleb Zulawski
751c3b5978
Update crates/test_helpers/src/lib.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-08-07 21:25:02 -04:00