diff --git a/.cargo/config.in b/.cargo/config.in index 2e5bad6fed..f265f49511 100644 --- a/.cargo/config.in +++ b/.cargo/config.in @@ -70,7 +70,7 @@ rev = "746743227485a83123784df0c53227ab466612ed" [source."https://github.com/hsivonen/packed_simd"] git = "https://github.com/hsivonen/packed_simd" replace-with = "vendored-sources" -rev = "f38664024b29d44c506431eada7c112629bb1aa9" +rev = "e588ceb568878e1a3156ea9ce551d5b63ef0cdc4" [source."https://github.com/hsivonen/chardetng_c"] git = "https://github.com/hsivonen/chardetng_c" diff --git a/.gitignore b/.gitignore index b409ec5837..6140a867bd 100644 --- a/.gitignore +++ b/.gitignore @@ -193,3 +193,6 @@ config/external/icu4x # Ignore Storybook generated files browser/components/storybook/node_modules/ browser/components/storybook/storybook-static/ + +*.org +*.rej diff --git a/Cargo.lock b/Cargo.lock index 9206cf64db..54106f3e9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1456,12 +1456,12 @@ dependencies = [ [[package]] name = "encoding_rs" -version = "0.8.31" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b" dependencies = [ "cfg-if 1.0.0", - "packed_simd_2", + "packed_simd", ] [[package]] @@ -3827,12 +3827,13 @@ dependencies = [ ] [[package]] -name = "packed_simd_2" -version = "0.3.8" -source = "git+https://github.com/hsivonen/packed_simd?rev=f38664024b29d44c506431eada7c112629bb1aa9#f38664024b29d44c506431eada7c112629bb1aa9" +name = "packed_simd" +version = "0.3.9" +source = "git+https://github.com/hsivonen/packed_simd?rev=e588ceb568878e1a3156ea9ce551d5b63ef0cdc4#e588ceb568878e1a3156ea9ce551d5b63ef0cdc4" dependencies = [ "cfg-if 1.0.0", "rustc_version", + "num-traits", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 45a6bdb688..670c739298 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,7 +120,7 @@ chardetng_c = { git = "https://github.com/hsivonen/chardetng_c", rev="ed8a4c6f90 coremidi = { git = "https://github.com/chris-zen/coremidi.git", rev="fc68464b5445caf111e41f643a2e69ccce0b4f83" } fog = { path = "toolkit/components/glean/api" } libudev-sys = { path = "dom/webauthn/libudev-sys" } -packed_simd = { package = "packed_simd_2", git = "https://github.com/hsivonen/packed_simd", rev="f38664024b29d44c506431eada7c112629bb1aa9" } +packed_simd = { git = "https://github.com/hsivonen/packed_simd", rev = "e588ceb568878e1a3156ea9ce551d5b63ef0cdc4" } midir = { git = "https://github.com/mozilla/midir.git", rev = "4c11f0ffb5d6a10de4aff40a7b81218b33b94e6f" } minidump_writer_linux = { git = "https://github.com/rust-minidump/minidump-writer.git", rev = "75ada456c92a429704691a85e1cb42fef8cafc0d" } diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk index a243ee5f7f..5ea931e8ce 100644 --- a/config/makefiles/rust.mk +++ b/config/makefiles/rust.mk @@ -248,7 +248,7 @@ endif ifndef RUSTC_BOOTSTRAP RUSTC_BOOTSTRAP := mozglue_static,qcms ifdef MOZ_RUST_SIMD -RUSTC_BOOTSTRAP := $(RUSTC_BOOTSTRAP),encoding_rs,packed_simd_2 +RUSTC_BOOTSTRAP := $(RUSTC_BOOTSTRAP),encoding_rs,packed_simd endif export RUSTC_BOOTSTRAP endif diff --git a/third_party/rust/encoding_rs/Cargo.toml b/third_party/rust/encoding_rs/Cargo.toml index 5fafdfa9ae..e9fd6c0af2 100644 --- a/third_party/rust/encoding_rs/Cargo.toml +++ b/third_party/rust/encoding_rs/Cargo.toml @@ -12,7 +12,7 @@ [package] edition = "2018" name = "encoding_rs" -version = "0.8.31" +version = "0.8.33" authors = ["Henri Sivonen "] description = "A Gecko-oriented implementation of the Encoding Standard" homepage = "https://docs.rs/encoding_rs/" @@ -40,9 +40,8 @@ lto = true version = "1.0" [dependencies.packed_simd] -version = "0.3.4" +version = "0.3.9" optional = true -package = "packed_simd_2" [dependencies.serde] version = "1.0" diff --git a/third_party/rust/encoding_rs/README.md b/third_party/rust/encoding_rs/README.md index d75d77d9a1..087308f07e 100644 --- a/third_party/rust/encoding_rs/README.md +++ b/third_party/rust/encoding_rs/README.md @@ -167,7 +167,7 @@ There are currently these optional cargo features: ### `simd-accel` -Enables SIMD acceleration using the nightly-dependent `packed_simd_2` crate. +Enables SIMD acceleration using the nightly-dependent `packed_simd` crate. This is an opt-in feature, because enabling this feature _opts out_ of Rust's guarantees of future compilers compiling old code (aka. "stability story"). @@ -188,7 +188,7 @@ feature. _Note!_ If you are compiling for a target that does not have 128-bit SIMD enabled as part of the target definition and you are enabling 128-bit SIMD using `-C target_feature`, you need to enable the `core_arch` Cargo feature -for `packed_simd_2` to compile a crates.io snapshot of `core_arch` instead of +for `packed_simd` to compile a crates.io snapshot of `core_arch` instead of using the standard-library copy of `core::arch`, because the `core::arch` module of the pre-compiled standard library has been compiled with the assumption that the CPU doesn't have 128-bit SIMD. At present this applies @@ -450,6 +450,10 @@ To regenerate the generated code: ## Release Notes +### 0.8.33 + +* Use `packed_simd` instead of `packed_simd_2` again now that updates are back under the `packed_simd` name. Only affects the `simd-accel` optional nightly feature. + ### 0.8.31 * Use SPDX with parentheses now that crates.io supports parentheses. diff --git a/third_party/rust/packed_simd_2/.appveyor.yml b/third_party/rust/packed_simd/.appveyor.yml similarity index 100% rename from third_party/rust/packed_simd_2/.appveyor.yml rename to third_party/rust/packed_simd/.appveyor.yml diff --git a/third_party/rust/packed_simd_2/.travis.yml b/third_party/rust/packed_simd/.travis.yml similarity index 100% rename from third_party/rust/packed_simd_2/.travis.yml rename to third_party/rust/packed_simd/.travis.yml diff --git a/third_party/rust/packed_simd_2/Cargo.toml b/third_party/rust/packed_simd/Cargo.toml similarity index 76% rename from third_party/rust/packed_simd_2/Cargo.toml rename to third_party/rust/packed_simd/Cargo.toml index 49338742dc..2ec2161851 100644 --- a/third_party/rust/packed_simd_2/Cargo.toml +++ b/third_party/rust/packed_simd/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "packed_simd_2" -version = "0.3.8" +name = "packed_simd" +version = "0.3.9" description = "Portable Packed SIMD vectors" documentation = "https://docs.rs/crate/packed_simd/" homepage = "https://github.com/rust-lang/packed_simd" @@ -31,8 +38,19 @@ default = [] into_bits = [] libcore_neon = [] +[package.metadata.docs.rs] +features = ["into_bits"] +rustdoc-args = [ + "--cfg", + "doc_cfg", +] + +[dependencies.num-traits] +version = "0.2.14" +default-features = false + [dev-dependencies] -paste = "^0.1.3" +paste = "^1" arrayvec = { version = "^0.5", default-features = false } [target.'cfg(target_arch = "x86_64")'.dependencies.sleef-sys] @@ -41,5 +59,5 @@ optional = true [target.wasm32-unknown-unknown.dev-dependencies] # Keep in sync with the version on Dockerfile. -wasm-bindgen = "=0.2.73" -wasm-bindgen-test = "=0.3.23" +wasm-bindgen = "=0.2.87" +wasm-bindgen-test = "=0.3.37" diff --git a/third_party/rust/packed_simd_2/LICENSE-APACHE b/third_party/rust/packed_simd/LICENSE-APACHE similarity index 100% rename from third_party/rust/packed_simd_2/LICENSE-APACHE rename to third_party/rust/packed_simd/LICENSE-APACHE diff --git a/third_party/rust/packed_simd_2/LICENSE-MIT b/third_party/rust/packed_simd/LICENSE-MIT similarity index 100% rename from third_party/rust/packed_simd_2/LICENSE-MIT rename to third_party/rust/packed_simd/LICENSE-MIT diff --git a/third_party/rust/packed_simd_2/README.md b/third_party/rust/packed_simd/README.md similarity index 76% rename from third_party/rust/packed_simd_2/README.md rename to third_party/rust/packed_simd/README.md index eb3101c33d..59db13fe4f 100644 --- a/third_party/rust/packed_simd_2/README.md +++ b/third_party/rust/packed_simd/README.md @@ -1,24 +1,11 @@ -# The Crates.io Version Can No Longer Be Updated! - -The original maintainer is out of contact, and the new maintainers (the Portable SIMD Project Group) do not have the appropriate crates.io permissions to issue updates. - -We are aware that the version available on crates.io is currently broken, and will not build. - -If you need to continue to use the crate, we have published a "next version" under an alternative name. - -Adjust your `[dependencies]` section of `Cargo.toml` to be the following: -```toml -packed_simd = { version = "0.3.8", package = "packed_simd_2" } -``` - # `Simd<[T; N]>` ## Implementation of [Rust RFC #2366: `std::simd`][rfc2366] -[![Travis-CI Status]][travis] [![Latest Version]][crates.io] [![docs]][master_docs] +[![Latest Version]][crates.io] [![docs]][master_docs] **WARNING**: this crate only supports the most recent nightly Rust toolchain -and will be superseded by [stdsimd](https://github.com/rust-lang/stdsimd). +and will be superseded by [`#![feature(portable_simd)]`](https://github.com/rust-lang/portable-simd). ## Documentation @@ -84,30 +71,25 @@ whether the test suite passes for a given target. | `i586-unknown-linux-gnu` | ✓ | ✗ | | `i686-unknown-linux-gnu` | ✓ | ✗ | | `x86_64-unknown-linux-gnu` | ✓ | ✓ | -| `arm-unknown-linux-gnueabi` | ✗ | ✗ | | `arm-unknown-linux-gnueabihf` | ✓ | ✓ | | `armv7-unknown-linux-gnueabi` | ✓ | ✓ | | `aarch64-unknown-linux-gnu` | ✓ | ✓ | -| `mips-unknown-linux-gnu` | ✓ | ✗ | -| `mipsel-unknown-linux-musl` | ✓ | ✗ | -| `mips64-unknown-linux-gnuabi64` | ✓ | ✗ | -| `mips64el-unknown-linux-gnuabi64` | ✓ | ✗ | -| `powerpc-unknown-linux-gnu` | ✗ | ✗ | -| `powerpc64-unknown-linux-gnu` | ✗ | ✗ | +| `powerpc-unknown-linux-gnu` | ✓ | ✗ | +| `powerpc64-unknown-linux-gnu` | ✓ | ✗ | | `powerpc64le-unknown-linux-gnu` | ✓ | ✓ | -| `s390x-unknown-linux-gnu` | ✗ | ✗ | +| `s390x-unknown-linux-gnu` | ✓ | ✗ | | `sparc64-unknown-linux-gnu` | ✓ | ✗ | | `thumbv7neon-unknown-linux-gnueabihf` | ✓ | ✓ | | **MacOSX** | **build** | **run** | | `x86_64-apple-darwin` | ✓ | ✓ | | **Android** | **build** | **run** | | `x86_64-linux-android` | ✓ | ✓ | -| `arm-linux-androideabi` | ✓ | ✓ | -| `aarch64-linux-android` | ✓ | ✓ | -| `thumbv7neon-linux-androideabi` | ✗ | ✗ | +| `armv7-linux-androideabi` | ✓ | ✗ | +| `aarch64-linux-android` | ✓ | ✗ | +| `thumbv7neon-linux-androideabi` | ✓ | ✗ | | **iOS** | **build** | **run** | -| `x86_64-apple-ios` | ✓ | ✗ | -| `aarch64-apple-ios` | ✓ | ✗ | +| `x86_64-apple-ios` | ✗ | ✗ | +| `aarch64-apple-ios` | ✗ | ✗ | ## Machine code verification @@ -146,11 +128,11 @@ dual licensed as above, without any additional terms or conditions. [Travis-CI Status]: https://travis-ci.com/rust-lang/packed_simd.svg?branch=master [appveyor]: https://ci.appveyor.com/project/gnzlbg/packed-simd [Appveyor Status]: https://ci.appveyor.com/api/projects/status/hd7v9dvr442hgdix?svg=true -[Latest Version]: https://img.shields.io/crates/v/packed_simd_2.svg -[crates.io]: https://crates.io/crates/packed_simd_2 -[docs]: https://docs.rs/packed_simd_2/badge.svg -[docs.rs]: https://docs.rs/packed_simd_2 -[master_docs]: https://rust-lang-nursery.github.io/packed_simd/packed_simd_2/ +[Latest Version]: https://img.shields.io/crates/v/packed_simd.svg +[crates.io]: https://crates.io/crates/packed_simd +[docs]: https://docs.rs/packed_simd/badge.svg +[docs.rs]: https://docs.rs/packed_simd +[master_docs]: https://rust-lang-nursery.github.io/packed_simd/packed_simd/ [perf_guide]: https://rust-lang-nursery.github.io/packed_simd/perf-guide/ [rfc2366]: https://github.com/rust-lang/rfcs/pull/2366 [ISPC]: https://ispc.github.io/ diff --git a/third_party/rust/packed_simd_2/bors.toml b/third_party/rust/packed_simd/bors.toml similarity index 100% rename from third_party/rust/packed_simd_2/bors.toml rename to third_party/rust/packed_simd/bors.toml diff --git a/third_party/rust/packed_simd_2/build.rs b/third_party/rust/packed_simd/build.rs similarity index 100% rename from third_party/rust/packed_simd_2/build.rs rename to third_party/rust/packed_simd/build.rs diff --git a/third_party/rust/packed_simd_2/ci/all.sh b/third_party/rust/packed_simd/ci/all.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/all.sh rename to third_party/rust/packed_simd/ci/all.sh diff --git a/third_party/rust/packed_simd/ci/android-install-ndk.sh b/third_party/rust/packed_simd/ci/android-install-ndk.sh new file mode 100644 index 0000000000..5370853937 --- /dev/null +++ b/third_party/rust/packed_simd/ci/android-install-ndk.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env sh +# Copyright 2016 The Rust Project Developers. See the COPYRIGHT +# file at the top-level directory of this distribution and at +# http://rust-lang.org/COPYRIGHT. +# +# Licensed under the Apache License, Version 2.0 or the MIT license +# , at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. + +set -ex + +ANDROID_NDK_URL=https://dl.google.com/android/repository +ANDROID_NDK_ARCHIVE=android-ndk-r25b-linux.zip + +curl -fO "$ANDROID_NDK_URL/$ANDROID_NDK_ARCHIVE" +unzip -q $ANDROID_NDK_ARCHIVE +rm $ANDROID_NDK_ARCHIVE +mv android-ndk-* ndk +rm -rf android-ndk-* diff --git a/third_party/rust/packed_simd_2/ci/android-install-sdk.sh b/third_party/rust/packed_simd/ci/android-install-sdk.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/android-install-sdk.sh rename to third_party/rust/packed_simd/ci/android-install-sdk.sh diff --git a/third_party/rust/packed_simd_2/ci/android-sysimage.sh b/third_party/rust/packed_simd/ci/android-sysimage.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/android-sysimage.sh rename to third_party/rust/packed_simd/ci/android-sysimage.sh diff --git a/third_party/rust/packed_simd_2/ci/benchmark.sh b/third_party/rust/packed_simd/ci/benchmark.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/benchmark.sh rename to third_party/rust/packed_simd/ci/benchmark.sh diff --git a/third_party/rust/packed_simd_2/ci/deploy_and_run_on_ios_simulator.rs b/third_party/rust/packed_simd/ci/deploy_and_run_on_ios_simulator.rs similarity index 100% rename from third_party/rust/packed_simd_2/ci/deploy_and_run_on_ios_simulator.rs rename to third_party/rust/packed_simd/ci/deploy_and_run_on_ios_simulator.rs diff --git a/third_party/rust/packed_simd_2/ci/docker/aarch64-linux-android/Dockerfile b/third_party/rust/packed_simd/ci/docker/aarch64-linux-android/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/aarch64-linux-android/Dockerfile rename to third_party/rust/packed_simd/ci/docker/aarch64-linux-android/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/aarch64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/aarch64-unknown-linux-gnu/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/aarch64-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/aarch64-unknown-linux-gnu/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/arm-unknown-linux-gnueabi/Dockerfile b/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabi/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/arm-unknown-linux-gnueabi/Dockerfile rename to third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabi/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile b/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile rename to third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/arm-linux-androideabi/Dockerfile b/third_party/rust/packed_simd/ci/docker/armv7-linux-androideabi/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/arm-linux-androideabi/Dockerfile rename to third_party/rust/packed_simd/ci/docker/armv7-linux-androideabi/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile b/third_party/rust/packed_simd/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile rename to third_party/rust/packed_simd/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/i586-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/i586-unknown-linux-gnu/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/i586-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/i586-unknown-linux-gnu/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/i686-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/i686-unknown-linux-gnu/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/i686-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/i686-unknown-linux-gnu/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/mips-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/mips-unknown-linux-gnu/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/mips-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/mips-unknown-linux-gnu/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile b/third_party/rust/packed_simd/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile rename to third_party/rust/packed_simd/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile b/third_party/rust/packed_simd/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile rename to third_party/rust/packed_simd/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/mipsel-unknown-linux-musl/Dockerfile b/third_party/rust/packed_simd/ci/docker/mipsel-unknown-linux-musl/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/mipsel-unknown-linux-musl/Dockerfile rename to third_party/rust/packed_simd/ci/docker/mipsel-unknown-linux-musl/Dockerfile diff --git a/third_party/rust/packed_simd_2/.cargo-checksum.json b/third_party/rust/packed_simd/.cargo-checksum.json similarity index 100% rename from third_party/rust/packed_simd_2/.cargo-checksum.json rename to third_party/rust/packed_simd/.cargo-checksum.json diff --git a/third_party/rust/packed_simd_2/ci/docker/powerpc-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile similarity index 96% rename from third_party/rust/packed_simd_2/ci/docker/powerpc-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile index 80cfee8ab5..15ba58e60c 100644 --- a/third_party/rust/packed_simd_2/ci/docker/powerpc-unknown-linux-gnu/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:22.04 RUN apt-get update && apt-get install -y --no-install-recommends \ gcc libc6-dev qemu-user ca-certificates \ diff --git a/third_party/rust/packed_simd_2/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile similarity index 96% rename from third_party/rust/packed_simd_2/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile index 74031a2a3e..21c296dc44 100644 --- a/third_party/rust/packed_simd_2/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:22.04 RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ diff --git a/third_party/rust/packed_simd_2/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile similarity index 96% rename from third_party/rust/packed_simd_2/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile index 471a7d9651..8034145fc0 100644 --- a/third_party/rust/packed_simd_2/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:22.04 RUN apt-get update && apt-get install -y --no-install-recommends \ gcc libc6-dev qemu-user ca-certificates \ diff --git a/third_party/rust/packed_simd_2/ci/docker/s390x-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/s390x-unknown-linux-gnu/Dockerfile similarity index 90% rename from third_party/rust/packed_simd_2/ci/docker/s390x-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/s390x-unknown-linux-gnu/Dockerfile index c645b0bcc2..e785ca370c 100644 --- a/third_party/rust/packed_simd_2/ci/docker/s390x-unknown-linux-gnu/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/s390x-unknown-linux-gnu/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.10 +FROM ubuntu:22.04 RUN apt-get update && \ apt-get install -y --no-install-recommends \ @@ -17,4 +17,4 @@ ENV CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER=s390x-linux-gnu-gcc \ CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_RUNNER="qemu-s390x -L /usr/s390x-linux-gnu" \ CC_s390x_unknown_linux_gnu=s390x-linux-gnu-gcc \ CXX_s390x_unknown_linux_gnu=s390x-linux-gnu-g++ \ - OBJDUMP=s390x-linux-gnu-objdump \ No newline at end of file + OBJDUMP=s390x-linux-gnu-objdump diff --git a/third_party/rust/packed_simd_2/ci/docker/sparc64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/sparc64-unknown-linux-gnu/Dockerfile similarity index 92% rename from third_party/rust/packed_simd_2/ci/docker/sparc64-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/sparc64-unknown-linux-gnu/Dockerfile index fe12af14da..c35f4d8f31 100644 --- a/third_party/rust/packed_simd_2/ci/docker/sparc64-unknown-linux-gnu/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/sparc64-unknown-linux-gnu/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:stretch +FROM debian:bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ curl ca-certificates \ @@ -15,4 +15,4 @@ COPY test-runner-linux / ENV CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_LINKER=sparc64-linux-gnu-gcc \ CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_RUNNER="/test-runner-linux sparc64" \ CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc \ - PATH=$PATH:/rust/bin \ No newline at end of file + PATH=$PATH:/rust/bin diff --git a/third_party/rust/packed_simd_2/ci/docker/thumbv7neon-linux-androideabi/Dockerfile b/third_party/rust/packed_simd/ci/docker/thumbv7neon-linux-androideabi/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/thumbv7neon-linux-androideabi/Dockerfile rename to third_party/rust/packed_simd/ci/docker/thumbv7neon-linux-androideabi/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile b/third_party/rust/packed_simd/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile rename to third_party/rust/packed_simd/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/wasm32-unknown-unknown/Dockerfile b/third_party/rust/packed_simd/ci/docker/wasm32-unknown-unknown/Dockerfile similarity index 86% rename from third_party/rust/packed_simd_2/ci/docker/wasm32-unknown-unknown/Dockerfile rename to third_party/rust/packed_simd/ci/docker/wasm32-unknown-unknown/Dockerfile index bd97170bc7..51ee13e6c9 100644 --- a/third_party/rust/packed_simd_2/ci/docker/wasm32-unknown-unknown/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/wasm32-unknown-unknown/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:22.04 RUN apt-get update -y && apt-get install -y --no-install-recommends \ ca-certificates \ @@ -8,7 +8,8 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \ git \ libc6-dev \ make \ - python \ + ninja-build \ + python-is-python3 \ xz-utils # Install `wasm2wat` @@ -17,10 +18,10 @@ RUN make -C wabt -j$(nproc) ENV PATH=$PATH:/wabt/bin # Install `wasm-bindgen-test-runner` -RUN curl -L https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.73/wasm-bindgen-0.2.73-x86_64-unknown-linux-musl.tar.gz \ +RUN curl -L https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.87/wasm-bindgen-0.2.87-x86_64-unknown-linux-musl.tar.gz \ | tar xzf - # Keep in sync with the version on Cargo.toml. -ENV PATH=$PATH:/wasm-bindgen-0.2.73-x86_64-unknown-linux-musl +ENV PATH=$PATH:/wasm-bindgen-0.2.87-x86_64-unknown-linux-musl ENV CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER=wasm-bindgen-test-runner # Install `node` diff --git a/third_party/rust/packed_simd_2/ci/docker/x86_64-linux-android/Dockerfile b/third_party/rust/packed_simd/ci/docker/x86_64-linux-android/Dockerfile similarity index 62% rename from third_party/rust/packed_simd_2/ci/docker/x86_64-linux-android/Dockerfile rename to third_party/rust/packed_simd/ci/docker/x86_64-linux-android/Dockerfile index d52dd45b12..785936d347 100644 --- a/third_party/rust/packed_simd_2/ci/docker/x86_64-linux-android/Dockerfile +++ b/third_party/rust/packed_simd/ci/docker/x86_64-linux-android/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:16.04 +FROM ubuntu:20.04 RUN apt-get update && \ apt-get install -y --no-install-recommends \ @@ -14,16 +14,18 @@ RUN apt-get update && \ WORKDIR /android/ ENV ANDROID_ARCH=x86_64 COPY android-install-ndk.sh /android/ -RUN sh /android/android-install-ndk.sh $ANDROID_ARCH +RUN sh /android/android-install-ndk.sh + +ENV STDARCH_ASSERT_INSTR_LIMIT=30 # We do not run x86_64-linux-android tests on an android emulator. # See ci/android-sysimage.sh for informations about how tests are run. COPY android-sysimage.sh /android/ RUN bash /android/android-sysimage.sh x86_64 x86_64-24_r07.zip -ENV PATH=$PATH:/rust/bin:/android/ndk-$ANDROID_ARCH/bin \ - CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=x86_64-linux-android-gcc \ - CC_x86_64_linux_android=x86_64-linux-android-gcc \ - CXX_x86_64_linux_android=x86_64-linux-android-g++ \ - OBJDUMP=x86_64-linux-android-objdump \ +ENV PATH=$PATH:/rust/bin:/android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin \ + CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=x86_64-linux-android21-clang \ + CC_x86_64_linux_android=x86_64-linux-android21-clang \ + CXX_x86_64_linux_android=x86_64-linux-android21-clang++ \ + OBJDUMP=llvm-objdump \ HOME=/tmp diff --git a/third_party/rust/packed_simd_2/ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile b/third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile rename to third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/docker/x86_64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu/Dockerfile similarity index 100% rename from third_party/rust/packed_simd_2/ci/docker/x86_64-unknown-linux-gnu/Dockerfile rename to third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu/Dockerfile diff --git a/third_party/rust/packed_simd_2/ci/dox.sh b/third_party/rust/packed_simd/ci/dox.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/dox.sh rename to third_party/rust/packed_simd/ci/dox.sh diff --git a/third_party/rust/packed_simd_2/ci/linux-s390x.sh b/third_party/rust/packed_simd/ci/linux-s390x.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/linux-s390x.sh rename to third_party/rust/packed_simd/ci/linux-s390x.sh diff --git a/third_party/rust/packed_simd_2/ci/linux-sparc64.sh b/third_party/rust/packed_simd/ci/linux-sparc64.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/linux-sparc64.sh rename to third_party/rust/packed_simd/ci/linux-sparc64.sh diff --git a/third_party/rust/packed_simd_2/ci/lld-shim.rs b/third_party/rust/packed_simd/ci/lld-shim.rs similarity index 100% rename from third_party/rust/packed_simd_2/ci/lld-shim.rs rename to third_party/rust/packed_simd/ci/lld-shim.rs diff --git a/third_party/rust/packed_simd_2/ci/max_line_width.sh b/third_party/rust/packed_simd/ci/max_line_width.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/max_line_width.sh rename to third_party/rust/packed_simd/ci/max_line_width.sh diff --git a/third_party/rust/packed_simd_2/ci/run-docker.sh b/third_party/rust/packed_simd/ci/run-docker.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/run-docker.sh rename to third_party/rust/packed_simd/ci/run-docker.sh diff --git a/third_party/rust/packed_simd_2/ci/run.sh b/third_party/rust/packed_simd/ci/run.sh similarity index 96% rename from third_party/rust/packed_simd_2/ci/run.sh rename to third_party/rust/packed_simd/ci/run.sh index 428a5d8902..b1b22ebd7c 100755 --- a/third_party/rust/packed_simd_2/ci/run.sh +++ b/third_party/rust/packed_simd/ci/run.sh @@ -95,4 +95,5 @@ if [[ "${NOVERIFY}" != "1" ]]; then cargo_test --release --manifest-path=target/verify/Cargo.toml fi -. ci/run_examples.sh +# FIXME: Figure out which examples take too long to run and ignore or adjust those +#. ci/run_examples.sh diff --git a/third_party/rust/packed_simd_2/ci/run_examples.sh b/third_party/rust/packed_simd/ci/run_examples.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/run_examples.sh rename to third_party/rust/packed_simd/ci/run_examples.sh diff --git a/third_party/rust/packed_simd_2/ci/runtest-android.rs b/third_party/rust/packed_simd/ci/runtest-android.rs similarity index 100% rename from third_party/rust/packed_simd_2/ci/runtest-android.rs rename to third_party/rust/packed_simd/ci/runtest-android.rs diff --git a/third_party/rust/packed_simd_2/ci/setup_benchmarks.sh b/third_party/rust/packed_simd/ci/setup_benchmarks.sh similarity index 100% rename from third_party/rust/packed_simd_2/ci/setup_benchmarks.sh rename to third_party/rust/packed_simd/ci/setup_benchmarks.sh diff --git a/third_party/rust/packed_simd_2/ci/test-runner-linux b/third_party/rust/packed_simd/ci/test-runner-linux similarity index 100% rename from third_party/rust/packed_simd_2/ci/test-runner-linux rename to third_party/rust/packed_simd/ci/test-runner-linux diff --git a/third_party/rust/packed_simd_2/contributing.md b/third_party/rust/packed_simd/contributing.md similarity index 100% rename from third_party/rust/packed_simd_2/contributing.md rename to third_party/rust/packed_simd/contributing.md diff --git a/third_party/rust/packed_simd_2/perf-guide/.gitignore b/third_party/rust/packed_simd/perf-guide/.gitignore similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/.gitignore rename to third_party/rust/packed_simd/perf-guide/.gitignore diff --git a/third_party/rust/packed_simd_2/perf-guide/book.toml b/third_party/rust/packed_simd/perf-guide/book.toml similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/book.toml rename to third_party/rust/packed_simd/perf-guide/book.toml diff --git a/third_party/rust/packed_simd_2/perf-guide/src/SUMMARY.md b/third_party/rust/packed_simd/perf-guide/src/SUMMARY.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/SUMMARY.md rename to third_party/rust/packed_simd/perf-guide/src/SUMMARY.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/ascii.css b/third_party/rust/packed_simd/perf-guide/src/ascii.css similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/ascii.css rename to third_party/rust/packed_simd/perf-guide/src/ascii.css diff --git a/third_party/rust/packed_simd_2/perf-guide/src/bound_checks.md b/third_party/rust/packed_simd/perf-guide/src/bound_checks.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/bound_checks.md rename to third_party/rust/packed_simd/perf-guide/src/bound_checks.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/float-math/approx.md b/third_party/rust/packed_simd/perf-guide/src/float-math/approx.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/float-math/approx.md rename to third_party/rust/packed_simd/perf-guide/src/float-math/approx.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/float-math/fma.md b/third_party/rust/packed_simd/perf-guide/src/float-math/fma.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/float-math/fma.md rename to third_party/rust/packed_simd/perf-guide/src/float-math/fma.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/float-math/fp.md b/third_party/rust/packed_simd/perf-guide/src/float-math/fp.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/float-math/fp.md rename to third_party/rust/packed_simd/perf-guide/src/float-math/fp.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/float-math/svml.md b/third_party/rust/packed_simd/perf-guide/src/float-math/svml.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/float-math/svml.md rename to third_party/rust/packed_simd/perf-guide/src/float-math/svml.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/introduction.md b/third_party/rust/packed_simd/perf-guide/src/introduction.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/introduction.md rename to third_party/rust/packed_simd/perf-guide/src/introduction.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/prof/linux.md b/third_party/rust/packed_simd/perf-guide/src/prof/linux.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/prof/linux.md rename to third_party/rust/packed_simd/perf-guide/src/prof/linux.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/prof/mca.md b/third_party/rust/packed_simd/perf-guide/src/prof/mca.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/prof/mca.md rename to third_party/rust/packed_simd/perf-guide/src/prof/mca.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/prof/profiling.md b/third_party/rust/packed_simd/perf-guide/src/prof/profiling.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/prof/profiling.md rename to third_party/rust/packed_simd/perf-guide/src/prof/profiling.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/target-feature/attribute.md b/third_party/rust/packed_simd/perf-guide/src/target-feature/attribute.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/target-feature/attribute.md rename to third_party/rust/packed_simd/perf-guide/src/target-feature/attribute.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/target-feature/features.md b/third_party/rust/packed_simd/perf-guide/src/target-feature/features.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/target-feature/features.md rename to third_party/rust/packed_simd/perf-guide/src/target-feature/features.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/target-feature/inlining.md b/third_party/rust/packed_simd/perf-guide/src/target-feature/inlining.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/target-feature/inlining.md rename to third_party/rust/packed_simd/perf-guide/src/target-feature/inlining.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/target-feature/practice.md b/third_party/rust/packed_simd/perf-guide/src/target-feature/practice.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/target-feature/practice.md rename to third_party/rust/packed_simd/perf-guide/src/target-feature/practice.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/target-feature/runtime.md b/third_party/rust/packed_simd/perf-guide/src/target-feature/runtime.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/target-feature/runtime.md rename to third_party/rust/packed_simd/perf-guide/src/target-feature/runtime.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/target-feature/rustflags.md b/third_party/rust/packed_simd/perf-guide/src/target-feature/rustflags.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/target-feature/rustflags.md rename to third_party/rust/packed_simd/perf-guide/src/target-feature/rustflags.md diff --git a/third_party/rust/packed_simd_2/perf-guide/src/vert-hor-ops.md b/third_party/rust/packed_simd/perf-guide/src/vert-hor-ops.md similarity index 100% rename from third_party/rust/packed_simd_2/perf-guide/src/vert-hor-ops.md rename to third_party/rust/packed_simd/perf-guide/src/vert-hor-ops.md diff --git a/third_party/rust/packed_simd_2/rustfmt.toml b/third_party/rust/packed_simd/rustfmt.toml similarity index 100% rename from third_party/rust/packed_simd_2/rustfmt.toml rename to third_party/rust/packed_simd/rustfmt.toml diff --git a/third_party/rust/packed_simd_2/src/api.rs b/third_party/rust/packed_simd/src/api.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api.rs rename to third_party/rust/packed_simd/src/api.rs diff --git a/third_party/rust/packed_simd_2/src/api/bit_manip.rs b/third_party/rust/packed_simd/src/api/bit_manip.rs similarity index 99% rename from third_party/rust/packed_simd_2/src/api/bit_manip.rs rename to third_party/rust/packed_simd/src/api/bit_manip.rs index 6d8865706d..c1e90bb0fb 100644 --- a/third_party/rust/packed_simd_2/src/api/bit_manip.rs +++ b/third_party/rust/packed_simd/src/api/bit_manip.rs @@ -34,7 +34,7 @@ macro_rules! impl_bit_manip { test_if! { $test_tt: - paste::item_with_macros! { + paste::item! { #[allow(overflowing_literals)] pub mod [<$id _bit_manip>] { #![allow(const_item_mutation)] diff --git a/third_party/rust/packed_simd_2/src/api/bitmask.rs b/third_party/rust/packed_simd/src/api/bitmask.rs similarity index 91% rename from third_party/rust/packed_simd_2/src/api/bitmask.rs rename to third_party/rust/packed_simd/src/api/bitmask.rs index a06ff0fab1..8f4868f328 100644 --- a/third_party/rust/packed_simd_2/src/api/bitmask.rs +++ b/third_party/rust/packed_simd/src/api/bitmask.rs @@ -17,13 +17,10 @@ macro_rules! impl_bitmask { test_if! { $test_tt: paste::item! { - #[cfg(not(any( + #[cfg(not( // FIXME: https://github.com/rust-lang-nursery/packed_simd/issues/210 - all(target_arch = "mips", target_endian = "big"), - all(target_arch = "mips64", target_endian = "big"), - target_arch = "sparc64", - target_arch = "s390x", - )))] + target_endian = "big" + ))] pub mod [<$id _bitmask>] { use super::*; #[cfg_attr(not(target_arch = "wasm32"), test)] diff --git a/third_party/rust/packed_simd_2/src/api/cast.rs b/third_party/rust/packed_simd/src/api/cast.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast.rs rename to third_party/rust/packed_simd/src/api/cast.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/macros.rs b/third_party/rust/packed_simd/src/api/cast/macros.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/macros.rs rename to third_party/rust/packed_simd/src/api/cast/macros.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/v128.rs b/third_party/rust/packed_simd/src/api/cast/v128.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/v128.rs rename to third_party/rust/packed_simd/src/api/cast/v128.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/v16.rs b/third_party/rust/packed_simd/src/api/cast/v16.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/v16.rs rename to third_party/rust/packed_simd/src/api/cast/v16.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/v256.rs b/third_party/rust/packed_simd/src/api/cast/v256.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/v256.rs rename to third_party/rust/packed_simd/src/api/cast/v256.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/v32.rs b/third_party/rust/packed_simd/src/api/cast/v32.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/v32.rs rename to third_party/rust/packed_simd/src/api/cast/v32.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/v512.rs b/third_party/rust/packed_simd/src/api/cast/v512.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/v512.rs rename to third_party/rust/packed_simd/src/api/cast/v512.rs diff --git a/third_party/rust/packed_simd_2/src/api/cast/v64.rs b/third_party/rust/packed_simd/src/api/cast/v64.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cast/v64.rs rename to third_party/rust/packed_simd/src/api/cast/v64.rs diff --git a/third_party/rust/packed_simd_2/src/api/cmp.rs b/third_party/rust/packed_simd/src/api/cmp.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cmp.rs rename to third_party/rust/packed_simd/src/api/cmp.rs diff --git a/third_party/rust/packed_simd_2/src/api/cmp/eq.rs b/third_party/rust/packed_simd/src/api/cmp/eq.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cmp/eq.rs rename to third_party/rust/packed_simd/src/api/cmp/eq.rs diff --git a/third_party/rust/packed_simd_2/src/api/cmp/ord.rs b/third_party/rust/packed_simd/src/api/cmp/ord.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cmp/ord.rs rename to third_party/rust/packed_simd/src/api/cmp/ord.rs diff --git a/third_party/rust/packed_simd_2/src/api/cmp/partial_eq.rs b/third_party/rust/packed_simd/src/api/cmp/partial_eq.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cmp/partial_eq.rs rename to third_party/rust/packed_simd/src/api/cmp/partial_eq.rs diff --git a/third_party/rust/packed_simd_2/src/api/cmp/partial_ord.rs b/third_party/rust/packed_simd/src/api/cmp/partial_ord.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cmp/partial_ord.rs rename to third_party/rust/packed_simd/src/api/cmp/partial_ord.rs diff --git a/third_party/rust/packed_simd_2/src/api/cmp/vertical.rs b/third_party/rust/packed_simd/src/api/cmp/vertical.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/cmp/vertical.rs rename to third_party/rust/packed_simd/src/api/cmp/vertical.rs diff --git a/third_party/rust/packed_simd_2/src/api/default.rs b/third_party/rust/packed_simd/src/api/default.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/default.rs rename to third_party/rust/packed_simd/src/api/default.rs diff --git a/third_party/rust/packed_simd_2/src/api/fmt.rs b/third_party/rust/packed_simd/src/api/fmt.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/fmt.rs rename to third_party/rust/packed_simd/src/api/fmt.rs diff --git a/third_party/rust/packed_simd_2/src/api/fmt/binary.rs b/third_party/rust/packed_simd/src/api/fmt/binary.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/fmt/binary.rs rename to third_party/rust/packed_simd/src/api/fmt/binary.rs diff --git a/third_party/rust/packed_simd_2/src/api/fmt/debug.rs b/third_party/rust/packed_simd/src/api/fmt/debug.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/fmt/debug.rs rename to third_party/rust/packed_simd/src/api/fmt/debug.rs diff --git a/third_party/rust/packed_simd_2/src/api/fmt/lower_hex.rs b/third_party/rust/packed_simd/src/api/fmt/lower_hex.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/fmt/lower_hex.rs rename to third_party/rust/packed_simd/src/api/fmt/lower_hex.rs diff --git a/third_party/rust/packed_simd_2/src/api/fmt/octal.rs b/third_party/rust/packed_simd/src/api/fmt/octal.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/fmt/octal.rs rename to third_party/rust/packed_simd/src/api/fmt/octal.rs diff --git a/third_party/rust/packed_simd_2/src/api/fmt/upper_hex.rs b/third_party/rust/packed_simd/src/api/fmt/upper_hex.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/fmt/upper_hex.rs rename to third_party/rust/packed_simd/src/api/fmt/upper_hex.rs diff --git a/third_party/rust/packed_simd_2/src/api/from.rs b/third_party/rust/packed_simd/src/api/from.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/from.rs rename to third_party/rust/packed_simd/src/api/from.rs diff --git a/third_party/rust/packed_simd_2/src/api/from/from_array.rs b/third_party/rust/packed_simd/src/api/from/from_array.rs similarity index 99% rename from third_party/rust/packed_simd_2/src/api/from/from_array.rs rename to third_party/rust/packed_simd/src/api/from/from_array.rs index b83f938162..5c7801ddaf 100644 --- a/third_party/rust/packed_simd_2/src/api/from/from_array.rs +++ b/third_party/rust/packed_simd/src/api/from/from_array.rs @@ -61,6 +61,7 @@ macro_rules! impl_from_array { mod [<$id _from>] { use super::*; #[test] + #[cfg_attr(miri, ignore)] fn array() { let vec: $id = Default::default(); diff --git a/third_party/rust/packed_simd_2/src/api/from/from_vector.rs b/third_party/rust/packed_simd/src/api/from/from_vector.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/from/from_vector.rs rename to third_party/rust/packed_simd/src/api/from/from_vector.rs diff --git a/third_party/rust/packed_simd_2/src/api/hash.rs b/third_party/rust/packed_simd/src/api/hash.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/hash.rs rename to third_party/rust/packed_simd/src/api/hash.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits.rs b/third_party/rust/packed_simd/src/api/into_bits.rs similarity index 91% rename from third_party/rust/packed_simd_2/src/api/into_bits.rs rename to third_party/rust/packed_simd/src/api/into_bits.rs index 32b6d2ddce..03fbe4bff7 100644 --- a/third_party/rust/packed_simd_2/src/api/into_bits.rs +++ b/third_party/rust/packed_simd/src/api/into_bits.rs @@ -1,12 +1,14 @@ //! Implementation of `FromBits` and `IntoBits`. /// Safe lossless bitwise conversion from `T` to `Self`. +#[cfg_attr(doc_cfg, doc(cfg(feature = "into_bits")))] pub trait FromBits: crate::marker::Sized { /// Safe lossless bitwise transmute from `T` to `Self`. fn from_bits(t: T) -> Self; } /// Safe lossless bitwise conversion from `Self` to `T`. +#[cfg_attr(doc_cfg, doc(cfg(feature = "into_bits")))] pub trait IntoBits: crate::marker::Sized { /// Safe lossless bitwise transmute from `self` to `T`. fn into_bits(self) -> T; diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/arch_specific.rs b/third_party/rust/packed_simd/src/api/into_bits/arch_specific.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/arch_specific.rs rename to third_party/rust/packed_simd/src/api/into_bits/arch_specific.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/macros.rs b/third_party/rust/packed_simd/src/api/into_bits/macros.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/macros.rs rename to third_party/rust/packed_simd/src/api/into_bits/macros.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/v128.rs b/third_party/rust/packed_simd/src/api/into_bits/v128.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/v128.rs rename to third_party/rust/packed_simd/src/api/into_bits/v128.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/v16.rs b/third_party/rust/packed_simd/src/api/into_bits/v16.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/v16.rs rename to third_party/rust/packed_simd/src/api/into_bits/v16.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/v256.rs b/third_party/rust/packed_simd/src/api/into_bits/v256.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/v256.rs rename to third_party/rust/packed_simd/src/api/into_bits/v256.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/v32.rs b/third_party/rust/packed_simd/src/api/into_bits/v32.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/v32.rs rename to third_party/rust/packed_simd/src/api/into_bits/v32.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/v512.rs b/third_party/rust/packed_simd/src/api/into_bits/v512.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/v512.rs rename to third_party/rust/packed_simd/src/api/into_bits/v512.rs diff --git a/third_party/rust/packed_simd_2/src/api/into_bits/v64.rs b/third_party/rust/packed_simd/src/api/into_bits/v64.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/into_bits/v64.rs rename to third_party/rust/packed_simd/src/api/into_bits/v64.rs diff --git a/third_party/rust/packed_simd_2/src/api/math.rs b/third_party/rust/packed_simd/src/api/math.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math.rs rename to third_party/rust/packed_simd/src/api/math.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float.rs b/third_party/rust/packed_simd/src/api/math/float.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float.rs rename to third_party/rust/packed_simd/src/api/math/float.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/abs.rs b/third_party/rust/packed_simd/src/api/math/float/abs.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/abs.rs rename to third_party/rust/packed_simd/src/api/math/float/abs.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/consts.rs b/third_party/rust/packed_simd/src/api/math/float/consts.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/consts.rs rename to third_party/rust/packed_simd/src/api/math/float/consts.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/cos.rs b/third_party/rust/packed_simd/src/api/math/float/cos.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/cos.rs rename to third_party/rust/packed_simd/src/api/math/float/cos.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/exp.rs b/third_party/rust/packed_simd/src/api/math/float/exp.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/exp.rs rename to third_party/rust/packed_simd/src/api/math/float/exp.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/ln.rs b/third_party/rust/packed_simd/src/api/math/float/ln.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/ln.rs rename to third_party/rust/packed_simd/src/api/math/float/ln.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/mul_add.rs b/third_party/rust/packed_simd/src/api/math/float/mul_add.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/mul_add.rs rename to third_party/rust/packed_simd/src/api/math/float/mul_add.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/mul_adde.rs b/third_party/rust/packed_simd/src/api/math/float/mul_adde.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/mul_adde.rs rename to third_party/rust/packed_simd/src/api/math/float/mul_adde.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/powf.rs b/third_party/rust/packed_simd/src/api/math/float/powf.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/powf.rs rename to third_party/rust/packed_simd/src/api/math/float/powf.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/recpre.rs b/third_party/rust/packed_simd/src/api/math/float/recpre.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/recpre.rs rename to third_party/rust/packed_simd/src/api/math/float/recpre.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/rsqrte.rs b/third_party/rust/packed_simd/src/api/math/float/rsqrte.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/rsqrte.rs rename to third_party/rust/packed_simd/src/api/math/float/rsqrte.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/sin.rs b/third_party/rust/packed_simd/src/api/math/float/sin.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/sin.rs rename to third_party/rust/packed_simd/src/api/math/float/sin.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/sqrt.rs b/third_party/rust/packed_simd/src/api/math/float/sqrt.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/sqrt.rs rename to third_party/rust/packed_simd/src/api/math/float/sqrt.rs diff --git a/third_party/rust/packed_simd_2/src/api/math/float/sqrte.rs b/third_party/rust/packed_simd/src/api/math/float/sqrte.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/math/float/sqrte.rs rename to third_party/rust/packed_simd/src/api/math/float/sqrte.rs diff --git a/third_party/rust/packed_simd_2/src/api/minimal.rs b/third_party/rust/packed_simd/src/api/minimal.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/minimal.rs rename to third_party/rust/packed_simd/src/api/minimal.rs diff --git a/third_party/rust/packed_simd_2/src/api/minimal/iuf.rs b/third_party/rust/packed_simd/src/api/minimal/iuf.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/minimal/iuf.rs rename to third_party/rust/packed_simd/src/api/minimal/iuf.rs diff --git a/third_party/rust/packed_simd_2/src/api/minimal/mask.rs b/third_party/rust/packed_simd/src/api/minimal/mask.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/minimal/mask.rs rename to third_party/rust/packed_simd/src/api/minimal/mask.rs diff --git a/third_party/rust/packed_simd_2/src/api/minimal/ptr.rs b/third_party/rust/packed_simd/src/api/minimal/ptr.rs similarity index 99% rename from third_party/rust/packed_simd_2/src/api/minimal/ptr.rs rename to third_party/rust/packed_simd/src/api/minimal/ptr.rs index c3d61fbf6d..d9e47c9ccb 100644 --- a/third_party/rust/packed_simd_2/src/api/minimal/ptr.rs +++ b/third_party/rust/packed_simd/src/api/minimal/ptr.rs @@ -583,7 +583,7 @@ macro_rules! impl_minimal_p { pub fn from_slice_aligned(slice: &[$elem_ty]) -> Self { unsafe { assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked(0) as *const $elem_ty; + let target_ptr = slice.as_ptr(); assert!( target_ptr.align_offset(crate::mem::align_of::()) == 0 @@ -615,7 +615,7 @@ macro_rules! impl_minimal_p { pub unsafe fn from_slice_aligned_unchecked(slice: &[$elem_ty]) -> Self { #[allow(clippy::cast_ptr_alignment)] - *(slice.get_unchecked(0) as *const $elem_ty as *const Self) + *(slice.as_ptr().cast()) } /// Instantiates a new vector with the values of the `slice`. @@ -628,8 +628,7 @@ macro_rules! impl_minimal_p { slice: &[$elem_ty], ) -> Self { use crate::mem::size_of; - let target_ptr = - slice.get_unchecked(0) as *const $elem_ty as *const u8; + let target_ptr = slice.as_ptr().cast(); let mut x = Self::splat(crate::ptr::null_mut() as $elem_ty); let self_ptr = &mut x as *mut Self as *mut u8; crate::ptr::copy_nonoverlapping( @@ -798,8 +797,7 @@ macro_rules! impl_minimal_p { pub fn write_to_slice_aligned(self, slice: &mut [$elem_ty]) { unsafe { assert!(slice.len() >= $elem_count); - let target_ptr = - slice.get_unchecked_mut(0) as *mut $elem_ty; + let target_ptr = slice.as_mut_ptr(); assert!( target_ptr.align_offset(crate::mem::align_of::()) == 0 @@ -833,8 +831,7 @@ macro_rules! impl_minimal_p { self, slice: &mut [$elem_ty], ) { #[allow(clippy::cast_ptr_alignment)] - *(slice.get_unchecked_mut(0) as *mut $elem_ty as *mut Self) = - self; + *(slice.as_mut_ptr().cast()) = self; } /// Writes the values of the vector to the `slice`. @@ -846,8 +843,7 @@ macro_rules! impl_minimal_p { pub unsafe fn write_to_slice_unaligned_unchecked( self, slice: &mut [$elem_ty], ) { - let target_ptr = - slice.get_unchecked_mut(0) as *mut $elem_ty as *mut u8; + let target_ptr = slice.as_mut_ptr().cast(); let self_ptr = &self as *const Self as *const u8; crate::ptr::copy_nonoverlapping( self_ptr, diff --git a/third_party/rust/packed_simd_2/src/api/ops.rs b/third_party/rust/packed_simd/src/api/ops.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops.rs rename to third_party/rust/packed_simd/src/api/ops.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/scalar_arithmetic.rs b/third_party/rust/packed_simd/src/api/ops/scalar_arithmetic.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/scalar_arithmetic.rs rename to third_party/rust/packed_simd/src/api/ops/scalar_arithmetic.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/scalar_bitwise.rs b/third_party/rust/packed_simd/src/api/ops/scalar_bitwise.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/scalar_bitwise.rs rename to third_party/rust/packed_simd/src/api/ops/scalar_bitwise.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/scalar_mask_bitwise.rs b/third_party/rust/packed_simd/src/api/ops/scalar_mask_bitwise.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/scalar_mask_bitwise.rs rename to third_party/rust/packed_simd/src/api/ops/scalar_mask_bitwise.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/scalar_shifts.rs b/third_party/rust/packed_simd/src/api/ops/scalar_shifts.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/scalar_shifts.rs rename to third_party/rust/packed_simd/src/api/ops/scalar_shifts.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_arithmetic.rs b/third_party/rust/packed_simd/src/api/ops/vector_arithmetic.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_arithmetic.rs rename to third_party/rust/packed_simd/src/api/ops/vector_arithmetic.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_bitwise.rs b/third_party/rust/packed_simd/src/api/ops/vector_bitwise.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_bitwise.rs rename to third_party/rust/packed_simd/src/api/ops/vector_bitwise.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_float_min_max.rs b/third_party/rust/packed_simd/src/api/ops/vector_float_min_max.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_float_min_max.rs rename to third_party/rust/packed_simd/src/api/ops/vector_float_min_max.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_int_min_max.rs b/third_party/rust/packed_simd/src/api/ops/vector_int_min_max.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_int_min_max.rs rename to third_party/rust/packed_simd/src/api/ops/vector_int_min_max.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_mask_bitwise.rs b/third_party/rust/packed_simd/src/api/ops/vector_mask_bitwise.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_mask_bitwise.rs rename to third_party/rust/packed_simd/src/api/ops/vector_mask_bitwise.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_neg.rs b/third_party/rust/packed_simd/src/api/ops/vector_neg.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_neg.rs rename to third_party/rust/packed_simd/src/api/ops/vector_neg.rs diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_rotates.rs b/third_party/rust/packed_simd/src/api/ops/vector_rotates.rs similarity index 97% rename from third_party/rust/packed_simd_2/src/api/ops/vector_rotates.rs rename to third_party/rust/packed_simd/src/api/ops/vector_rotates.rs index 147fc2e37d..6c4bed72a2 100644 --- a/third_party/rust/packed_simd_2/src/api/ops/vector_rotates.rs +++ b/third_party/rust/packed_simd/src/api/ops/vector_rotates.rs @@ -23,8 +23,8 @@ macro_rules! impl_ops_vector_rotates { /// amount in the corresponding lane of `n`, wrapping the /// truncated bits to the beginning of the resulting integer. /// - /// Note: this is neither the same operation as `<<` nor equivalent - /// to `slice::rotate_left`. + /// Note: this is neither the same operation as `>>` nor equivalent + /// to `slice::rotate_right`. #[inline] pub fn rotate_right(self, n: $id) -> $id { const LANE_WIDTH: $elem_ty = diff --git a/third_party/rust/packed_simd_2/src/api/ops/vector_shifts.rs b/third_party/rust/packed_simd/src/api/ops/vector_shifts.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ops/vector_shifts.rs rename to third_party/rust/packed_simd/src/api/ops/vector_shifts.rs diff --git a/third_party/rust/packed_simd_2/src/api/ptr.rs b/third_party/rust/packed_simd/src/api/ptr.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ptr.rs rename to third_party/rust/packed_simd/src/api/ptr.rs diff --git a/third_party/rust/packed_simd_2/src/api/ptr/gather_scatter.rs b/third_party/rust/packed_simd/src/api/ptr/gather_scatter.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/ptr/gather_scatter.rs rename to third_party/rust/packed_simd/src/api/ptr/gather_scatter.rs diff --git a/third_party/rust/packed_simd_2/src/api/reductions.rs b/third_party/rust/packed_simd/src/api/reductions.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/reductions.rs rename to third_party/rust/packed_simd/src/api/reductions.rs diff --git a/third_party/rust/packed_simd_2/src/api/reductions/bitwise.rs b/third_party/rust/packed_simd/src/api/reductions/bitwise.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/reductions/bitwise.rs rename to third_party/rust/packed_simd/src/api/reductions/bitwise.rs diff --git a/third_party/rust/packed_simd_2/src/api/reductions/float_arithmetic.rs b/third_party/rust/packed_simd/src/api/reductions/float_arithmetic.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/reductions/float_arithmetic.rs rename to third_party/rust/packed_simd/src/api/reductions/float_arithmetic.rs diff --git a/third_party/rust/packed_simd_2/src/api/reductions/integer_arithmetic.rs b/third_party/rust/packed_simd/src/api/reductions/integer_arithmetic.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/reductions/integer_arithmetic.rs rename to third_party/rust/packed_simd/src/api/reductions/integer_arithmetic.rs diff --git a/third_party/rust/packed_simd_2/src/api/reductions/mask.rs b/third_party/rust/packed_simd/src/api/reductions/mask.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/reductions/mask.rs rename to third_party/rust/packed_simd/src/api/reductions/mask.rs diff --git a/third_party/rust/packed_simd_2/src/api/reductions/min_max.rs b/third_party/rust/packed_simd/src/api/reductions/min_max.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/reductions/min_max.rs rename to third_party/rust/packed_simd/src/api/reductions/min_max.rs diff --git a/third_party/rust/packed_simd_2/src/api/select.rs b/third_party/rust/packed_simd/src/api/select.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/select.rs rename to third_party/rust/packed_simd/src/api/select.rs diff --git a/third_party/rust/packed_simd_2/src/api/shuffle.rs b/third_party/rust/packed_simd/src/api/shuffle.rs similarity index 99% rename from third_party/rust/packed_simd_2/src/api/shuffle.rs rename to third_party/rust/packed_simd/src/api/shuffle.rs index fda29ccddc..1c17bd766e 100644 --- a/third_party/rust/packed_simd_2/src/api/shuffle.rs +++ b/third_party/rust/packed_simd/src/api/shuffle.rs @@ -27,7 +27,7 @@ /// Shuffling elements of two vectors: /// /// ``` -/// # use packed_simd_2::*; +/// # use packed_simd::*; /// # fn main() { /// // Shuffle allows reordering the elements: /// let x = i32x4::new(1, 2, 3, 4); @@ -49,7 +49,7 @@ /// Shuffling elements of one vector: /// /// ``` -/// # use packed_simd_2::*; +/// # use packed_simd::*; /// # fn main() { /// // Shuffle allows reordering the elements of a vector: /// let x = i32x4::new(1, 2, 3, 4); diff --git a/third_party/rust/packed_simd_2/src/api/shuffle1_dyn.rs b/third_party/rust/packed_simd/src/api/shuffle1_dyn.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/shuffle1_dyn.rs rename to third_party/rust/packed_simd/src/api/shuffle1_dyn.rs diff --git a/third_party/rust/packed_simd_2/src/api/slice.rs b/third_party/rust/packed_simd/src/api/slice.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/api/slice.rs rename to third_party/rust/packed_simd/src/api/slice.rs diff --git a/third_party/rust/packed_simd_2/src/api/slice/from_slice.rs b/third_party/rust/packed_simd/src/api/slice/from_slice.rs similarity index 97% rename from third_party/rust/packed_simd_2/src/api/slice/from_slice.rs rename to third_party/rust/packed_simd/src/api/slice/from_slice.rs index 50f3914f7b..cafd6f8213 100644 --- a/third_party/rust/packed_simd_2/src/api/slice/from_slice.rs +++ b/third_party/rust/packed_simd/src/api/slice/from_slice.rs @@ -13,7 +13,7 @@ macro_rules! impl_slice_from_slice { pub fn from_slice_aligned(slice: &[$elem_ty]) -> Self { unsafe { assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked(0) as *const $elem_ty; + let target_ptr = slice.as_ptr(); assert_eq!(target_ptr.align_offset(crate::mem::align_of::()), 0); Self::from_slice_aligned_unchecked(slice) } @@ -41,7 +41,7 @@ macro_rules! impl_slice_from_slice { #[inline] pub unsafe fn from_slice_aligned_unchecked(slice: &[$elem_ty]) -> Self { debug_assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked(0) as *const $elem_ty; + let target_ptr = slice.as_ptr(); debug_assert_eq!(target_ptr.align_offset(crate::mem::align_of::()), 0); #[allow(clippy::cast_ptr_alignment)] @@ -57,7 +57,7 @@ macro_rules! impl_slice_from_slice { pub unsafe fn from_slice_unaligned_unchecked(slice: &[$elem_ty]) -> Self { use crate::mem::size_of; debug_assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked(0) as *const $elem_ty as *const u8; + let target_ptr = slice.as_ptr().cast(); let mut x = Self::splat(0 as $elem_ty); let self_ptr = &mut x as *mut Self as *mut u8; crate::ptr::copy_nonoverlapping(target_ptr, self_ptr, size_of::()); diff --git a/third_party/rust/packed_simd_2/src/api/slice/write_to_slice.rs b/third_party/rust/packed_simd/src/api/slice/write_to_slice.rs similarity index 97% rename from third_party/rust/packed_simd_2/src/api/slice/write_to_slice.rs rename to third_party/rust/packed_simd/src/api/slice/write_to_slice.rs index dd04a2634d..5abd4916e0 100644 --- a/third_party/rust/packed_simd_2/src/api/slice/write_to_slice.rs +++ b/third_party/rust/packed_simd/src/api/slice/write_to_slice.rs @@ -13,7 +13,7 @@ macro_rules! impl_slice_write_to_slice { pub fn write_to_slice_aligned(self, slice: &mut [$elem_ty]) { unsafe { assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked_mut(0) as *mut $elem_ty; + let target_ptr = slice.as_mut_ptr(); assert_eq!(target_ptr.align_offset(crate::mem::align_of::()), 0); self.write_to_slice_aligned_unchecked(slice); } @@ -42,7 +42,7 @@ macro_rules! impl_slice_write_to_slice { #[inline] pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [$elem_ty]) { debug_assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked_mut(0) as *mut $elem_ty; + let target_ptr = slice.as_mut_ptr(); debug_assert_eq!(target_ptr.align_offset(crate::mem::align_of::()), 0); #[allow(clippy::cast_ptr_alignment)] @@ -60,7 +60,7 @@ macro_rules! impl_slice_write_to_slice { #[inline] pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [$elem_ty]) { debug_assert!(slice.len() >= $elem_count); - let target_ptr = slice.get_unchecked_mut(0) as *mut $elem_ty as *mut u8; + let target_ptr = slice.as_mut_ptr().cast(); let self_ptr = &self as *const Self as *const u8; crate::ptr::copy_nonoverlapping(self_ptr, target_ptr, crate::mem::size_of::()); } diff --git a/third_party/rust/packed_simd_2/src/api/swap_bytes.rs b/third_party/rust/packed_simd/src/api/swap_bytes.rs similarity index 99% rename from third_party/rust/packed_simd_2/src/api/swap_bytes.rs rename to third_party/rust/packed_simd/src/api/swap_bytes.rs index 53bba25bd3..4649ed679b 100644 --- a/third_party/rust/packed_simd_2/src/api/swap_bytes.rs +++ b/third_party/rust/packed_simd/src/api/swap_bytes.rs @@ -76,7 +76,7 @@ macro_rules! impl_swap_bytes { test_if! { $test_tt: - paste::item_with_macros! { + paste::item! { pub mod [<$id _swap_bytes>] { use super::*; diff --git a/third_party/rust/packed_simd_2/src/codegen.rs b/third_party/rust/packed_simd/src/codegen.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen.rs rename to third_party/rust/packed_simd/src/codegen.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/bit_manip.rs b/third_party/rust/packed_simd/src/codegen/bit_manip.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/bit_manip.rs rename to third_party/rust/packed_simd/src/codegen/bit_manip.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/llvm.rs b/third_party/rust/packed_simd/src/codegen/llvm.rs similarity index 85% rename from third_party/rust/packed_simd_2/src/codegen/llvm.rs rename to third_party/rust/packed_simd/src/codegen/llvm.rs index b4c09849bc..bb482fac66 100644 --- a/third_party/rust/packed_simd_2/src/codegen/llvm.rs +++ b/third_party/rust/packed_simd/src/codegen/llvm.rs @@ -5,14 +5,8 @@ use crate::sealed::Shuffle; #[allow(unused_imports)] // FIXME: spurious warning? use crate::sealed::Simd; -// Shuffle intrinsics: expanded in users' crates, therefore public. extern "platform-intrinsic" { - pub fn simd_shuffle2(x: T, y: T, idx: [u32; 2]) -> U; - pub fn simd_shuffle4(x: T, y: T, idx: [u32; 4]) -> U; - pub fn simd_shuffle8(x: T, y: T, idx: [u32; 8]) -> U; - pub fn simd_shuffle16(x: T, y: T, idx: [u32; 16]) -> U; - pub fn simd_shuffle32(x: T, y: T, idx: [u32; 32]) -> U; - pub fn simd_shuffle64(x: T, y: T, idx: [u32; 64]) -> U; + fn simd_shuffle(x: T, y: T, idx: I) -> U; } #[allow(clippy::missing_safety_doc)] @@ -22,7 +16,7 @@ where T: Simd, ::Element: Shuffle<[u32; 2], Output = U>, { - simd_shuffle2(x, y, IDX) + simd_shuffle(x, y, IDX) } #[allow(clippy::missing_safety_doc)] @@ -32,7 +26,7 @@ where T: Simd, ::Element: Shuffle<[u32; 4], Output = U>, { - simd_shuffle4(x, y, IDX) + simd_shuffle(x, y, IDX) } #[allow(clippy::missing_safety_doc)] @@ -42,7 +36,7 @@ where T: Simd, ::Element: Shuffle<[u32; 8], Output = U>, { - simd_shuffle8(x, y, IDX) + simd_shuffle(x, y, IDX) } #[allow(clippy::missing_safety_doc)] @@ -52,7 +46,7 @@ where T: Simd, ::Element: Shuffle<[u32; 16], Output = U>, { - simd_shuffle16(x, y, IDX) + simd_shuffle(x, y, IDX) } #[allow(clippy::missing_safety_doc)] @@ -62,7 +56,7 @@ where T: Simd, ::Element: Shuffle<[u32; 32], Output = U>, { - simd_shuffle32(x, y, IDX) + simd_shuffle(x, y, IDX) } #[allow(clippy::missing_safety_doc)] @@ -72,7 +66,7 @@ where T: Simd, ::Element: Shuffle<[u32; 64], Output = U>, { - simd_shuffle64(x, y, IDX) + simd_shuffle(x, y, IDX) } extern "platform-intrinsic" { diff --git a/third_party/rust/packed_simd_2/src/codegen/math.rs b/third_party/rust/packed_simd/src/codegen/math.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math.rs rename to third_party/rust/packed_simd/src/codegen/math.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float.rs b/third_party/rust/packed_simd/src/codegen/math/float.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float.rs rename to third_party/rust/packed_simd/src/codegen/math/float.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/abs.rs b/third_party/rust/packed_simd/src/codegen/math/float/abs.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/abs.rs rename to third_party/rust/packed_simd/src/codegen/math/float/abs.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/cos.rs b/third_party/rust/packed_simd/src/codegen/math/float/cos.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/cos.rs rename to third_party/rust/packed_simd/src/codegen/math/float/cos.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/cos_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/cos_pi.rs rename to third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/exp.rs b/third_party/rust/packed_simd/src/codegen/math/float/exp.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/exp.rs rename to third_party/rust/packed_simd/src/codegen/math/float/exp.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/ln.rs b/third_party/rust/packed_simd/src/codegen/math/float/ln.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/ln.rs rename to third_party/rust/packed_simd/src/codegen/math/float/ln.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/macros.rs b/third_party/rust/packed_simd/src/codegen/math/float/macros.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/macros.rs rename to third_party/rust/packed_simd/src/codegen/math/float/macros.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/mul_add.rs b/third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/mul_add.rs rename to third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/mul_adde.rs b/third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/mul_adde.rs rename to third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/powf.rs b/third_party/rust/packed_simd/src/codegen/math/float/powf.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/powf.rs rename to third_party/rust/packed_simd/src/codegen/math/float/powf.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/sin.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/sin.rs rename to third_party/rust/packed_simd/src/codegen/math/float/sin.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/sin_cos_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/sin_cos_pi.rs rename to third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/sin_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/sin_pi.rs rename to third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/sqrt.rs b/third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/sqrt.rs rename to third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/math/float/sqrte.rs b/third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/math/float/sqrte.rs rename to third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/pointer_sized_int.rs b/third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/pointer_sized_int.rs rename to third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions.rs b/third_party/rust/packed_simd/src/codegen/reductions.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions.rs rename to third_party/rust/packed_simd/src/codegen/reductions.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/aarch64.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/aarch64.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/aarch64.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/aarch64.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/arm.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/arm.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/arm.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/arm.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/fallback.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/fallback.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/fallback.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/fallback.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/fallback_impl.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/fallback_impl.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/fallback_impl.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/fallback_impl.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/x86.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/avx.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/avx.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/avx.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/x86/avx.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/avx2.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/avx2.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/avx2.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/x86/avx2.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/sse.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/sse.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/sse2.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse2.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/reductions/mask/x86/sse2.rs rename to third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse2.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/shuffle.rs b/third_party/rust/packed_simd/src/codegen/shuffle.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/shuffle.rs rename to third_party/rust/packed_simd/src/codegen/shuffle.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/shuffle1_dyn.rs b/third_party/rust/packed_simd/src/codegen/shuffle1_dyn.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/shuffle1_dyn.rs rename to third_party/rust/packed_simd/src/codegen/shuffle1_dyn.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/swap_bytes.rs b/third_party/rust/packed_simd/src/codegen/swap_bytes.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/swap_bytes.rs rename to third_party/rust/packed_simd/src/codegen/swap_bytes.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/v128.rs b/third_party/rust/packed_simd/src/codegen/v128.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/v128.rs rename to third_party/rust/packed_simd/src/codegen/v128.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/v16.rs b/third_party/rust/packed_simd/src/codegen/v16.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/v16.rs rename to third_party/rust/packed_simd/src/codegen/v16.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/v256.rs b/third_party/rust/packed_simd/src/codegen/v256.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/v256.rs rename to third_party/rust/packed_simd/src/codegen/v256.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/v32.rs b/third_party/rust/packed_simd/src/codegen/v32.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/v32.rs rename to third_party/rust/packed_simd/src/codegen/v32.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/v512.rs b/third_party/rust/packed_simd/src/codegen/v512.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/v512.rs rename to third_party/rust/packed_simd/src/codegen/v512.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/v64.rs b/third_party/rust/packed_simd/src/codegen/v64.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/v64.rs rename to third_party/rust/packed_simd/src/codegen/v64.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/vPtr.rs b/third_party/rust/packed_simd/src/codegen/vPtr.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/vPtr.rs rename to third_party/rust/packed_simd/src/codegen/vPtr.rs diff --git a/third_party/rust/packed_simd_2/src/codegen/vSize.rs b/third_party/rust/packed_simd/src/codegen/vSize.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/codegen/vSize.rs rename to third_party/rust/packed_simd/src/codegen/vSize.rs diff --git a/third_party/rust/packed_simd_2/src/lib.rs b/third_party/rust/packed_simd/src/lib.rs similarity index 98% rename from third_party/rust/packed_simd_2/src/lib.rs rename to third_party/rust/packed_simd/src/lib.rs index cd8a86805d..fdc64f1e46 100644 --- a/third_party/rust/packed_simd_2/src/lib.rs +++ b/third_party/rust/packed_simd/src/lib.rs @@ -26,7 +26,7 @@ //! are applied to each vector lane in isolation of the others: //! //! ``` -//! # use packed_simd_2::*; +//! # use packed_simd::*; //! let a = i32x4::new(1, 2, 3, 4); //! let b = i32x4::new(5, 6, 7, 8); //! assert_eq!(a + b, i32x4::new(6, 8, 10, 12)); @@ -35,7 +35,7 @@ //! Many "horizontal" operations are also provided: //! //! ``` -//! # use packed_simd_2::*; +//! # use packed_simd::*; //! # let a = i32x4::new(1, 2, 3, 4); //! assert_eq!(a.wrapping_sum(), 10); //! ``` @@ -47,7 +47,7 @@ //! and performing a single horizontal operation at the end: //! //! ``` -//! # use packed_simd_2::*; +//! # use packed_simd::*; //! fn reduce(x: &[i32]) -> i32 { //! assert_eq!(x.len() % 4, 0); //! let mut sum = i32x4::splat(0); // [0, 0, 0, 0] @@ -79,7 +79,7 @@ //! ## Basic operations //! //! ``` -//! # use packed_simd_2::*; +//! # use packed_simd::*; //! // Sets all elements to `0`: //! let a = i32x4::splat(0); //! @@ -107,7 +107,7 @@ //! to be performed: //! //! ``` -//! # use packed_simd_2::*; +//! # use packed_simd::*; //! let a = i32x4::new(1, 1, 2, 2); //! //! // Add `1` to the first two lanes of the vector. @@ -140,7 +140,7 @@ //! All vertical comparison operations returns masks: //! //! ``` -//! # use packed_simd_2::*; +//! # use packed_simd::*; //! let a = i32x4::new(1, 1, 3, 3); //! let b = i32x4::new(2, 2, 0, 0); //! @@ -242,6 +242,7 @@ clippy::from_over_into, )] #![cfg_attr(test, feature(hashmap_internals))] +#![cfg_attr(doc_cfg, feature(doc_cfg))] #![deny(rust_2018_idioms, clippy::missing_inline_in_public_items)] #![no_std] @@ -280,7 +281,7 @@ pub use crate::sealed::{Mask, Shuffle, Simd as SimdVector, SimdArray}; /// # Examples /// /// ``` -/// # use packed_simd_2::Simd; +/// # use packed_simd::Simd; /// let v = Simd::<[i32; 4]>::new(0, 1, 2, 3); /// assert_eq!(v.extract(2), 2); /// ``` diff --git a/third_party/rust/packed_simd_2/src/masks.rs b/third_party/rust/packed_simd/src/masks.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/masks.rs rename to third_party/rust/packed_simd/src/masks.rs diff --git a/third_party/rust/packed_simd_2/src/sealed.rs b/third_party/rust/packed_simd/src/sealed.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/sealed.rs rename to third_party/rust/packed_simd/src/sealed.rs diff --git a/third_party/rust/packed_simd_2/src/testing.rs b/third_party/rust/packed_simd/src/testing.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/testing.rs rename to third_party/rust/packed_simd/src/testing.rs diff --git a/third_party/rust/packed_simd_2/src/testing/macros.rs b/third_party/rust/packed_simd/src/testing/macros.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/testing/macros.rs rename to third_party/rust/packed_simd/src/testing/macros.rs diff --git a/third_party/rust/packed_simd_2/src/testing/utils.rs b/third_party/rust/packed_simd/src/testing/utils.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/testing/utils.rs rename to third_party/rust/packed_simd/src/testing/utils.rs diff --git a/third_party/rust/packed_simd_2/src/v128.rs b/third_party/rust/packed_simd/src/v128.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/v128.rs rename to third_party/rust/packed_simd/src/v128.rs diff --git a/third_party/rust/packed_simd_2/src/v16.rs b/third_party/rust/packed_simd/src/v16.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/v16.rs rename to third_party/rust/packed_simd/src/v16.rs diff --git a/third_party/rust/packed_simd_2/src/v256.rs b/third_party/rust/packed_simd/src/v256.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/v256.rs rename to third_party/rust/packed_simd/src/v256.rs diff --git a/third_party/rust/packed_simd_2/src/v32.rs b/third_party/rust/packed_simd/src/v32.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/v32.rs rename to third_party/rust/packed_simd/src/v32.rs diff --git a/third_party/rust/packed_simd_2/src/v512.rs b/third_party/rust/packed_simd/src/v512.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/v512.rs rename to third_party/rust/packed_simd/src/v512.rs diff --git a/third_party/rust/packed_simd_2/src/v64.rs b/third_party/rust/packed_simd/src/v64.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/v64.rs rename to third_party/rust/packed_simd/src/v64.rs diff --git a/third_party/rust/packed_simd_2/src/vPtr.rs b/third_party/rust/packed_simd/src/vPtr.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/vPtr.rs rename to third_party/rust/packed_simd/src/vPtr.rs diff --git a/third_party/rust/packed_simd_2/src/vSize.rs b/third_party/rust/packed_simd/src/vSize.rs similarity index 100% rename from third_party/rust/packed_simd_2/src/vSize.rs rename to third_party/rust/packed_simd/src/vSize.rs diff --git a/third_party/rust/packed_simd_2/tests/endianness.rs b/third_party/rust/packed_simd/tests/endianness.rs similarity index 99% rename from third_party/rust/packed_simd_2/tests/endianness.rs rename to third_party/rust/packed_simd/tests/endianness.rs index da12c2338b..17a7796b1b 100644 --- a/third_party/rust/packed_simd_2/tests/endianness.rs +++ b/third_party/rust/packed_simd/tests/endianness.rs @@ -1,7 +1,7 @@ #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; -use packed_simd_2::*; +use packed_simd::*; use std::{mem, slice}; #[cfg_attr(not(target_arch = "wasm32"), test)] diff --git a/third_party/rust/packed_simd_2/ci/android-install-ndk.sh b/third_party/rust/packed_simd_2/ci/android-install-ndk.sh deleted file mode 100644 index 818e78446a..0000000000 --- a/third_party/rust/packed_simd_2/ci/android-install-ndk.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env sh -# Copyright 2016 The Rust Project Developers. See the COPYRIGHT -# file at the top-level directory of this distribution and at -# http://rust-lang.org/COPYRIGHT. -# -# Licensed under the Apache License, Version 2.0 or the MIT license -# , at your -# option. This file may not be copied, modified, or distributed -# except according to those terms. - -set -ex - -curl --retry 5 -O https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip -unzip -q android-ndk-r15b-linux-x86_64.zip - -case "$1" in - aarch64) - arch=arm64 - ;; - - i686) - arch=x86 - ;; - - *) - arch=$1 - ;; -esac; - -android-ndk-r15b/build/tools/make_standalone_toolchain.py \ - --unified-headers \ - --install-dir "/android/ndk-${1}" \ - --arch "${arch}" \ - --api 24 - -rm -rf ./android-ndk-r15b-linux-x86_64.zip ./android-ndk-r15b