Skip to content

Commit 598e632

Browse files
committed
Update repo name
1 parent f18a562 commit 598e632

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+226
-231
lines changed

.travis.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ matrix:
1313
env: TARGET=x86_64-unknown-linux-gnu
1414
install: true
1515
- name: "x86_64-unknown-linux-gnu-emulated (runs all assert_instr tests)"
16-
env: TARGET=x86_64-unknown-linux-gnu-emulated STDSIMD_TEST_EVERYTHING=1 RUSTFLAGS="--cfg stdsimd_intel_sde"
16+
env: TARGET=x86_64-unknown-linux-gnu-emulated STDARCH_TEST_EVERYTHING=1 RUSTFLAGS="--cfg stdarch_intel_sde"
1717
install: true
1818
- name: "x86_64-linux-android - no assert_instr"
19-
env: TARGET=x86_64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1
19+
env: TARGET=x86_64-linux-android STDARCH_DISABLE_ASSERT_INSTR=1
2020
- name: "arm-unknown-linux-gnueabihf"
2121
env: TARGET=arm-unknown-linux-gnueabihf
2222
- name: "arm-linux-androideabi - no assert_instr"
23-
env: TARGET=arm-linux-androideabi STDSIMD_DISABLE_ASSERT_INSTR=1
23+
env: TARGET=arm-linux-androideabi STDARCH_DISABLE_ASSERT_INSTR=1
2424
- name: "armv7-unknown-linux-gnueabihf - NEON"
2525
env: TARGET=armv7-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+neon"
2626
- name: "aarch64-unknown-linux-gnu"
@@ -34,13 +34,13 @@ matrix:
3434
- name: "mips64el-unknown-linux-gnuabi64 - build-only"
3535
env: TARGET=mips64el-unknown-linux-gnuabi64 NORUN=1
3636
- name: "aarch64-linux-android - no assert_instr"
37-
env: TARGET=aarch64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1
37+
env: TARGET=aarch64-linux-android STDARCH_DISABLE_ASSERT_INSTR=1
3838
- name: "powerpc-unknown-linux-gnu - no assert_instr"
39-
env: TARGET=powerpc-unknown-linux-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
39+
env: TARGET=powerpc-unknown-linux-gnu STDARCH_DISABLE_ASSERT_INSTR=1
4040
- name: "powerpc64-unknown-linux-gnu - no assert_instr"
41-
env: TARGET=powerpc64-unknown-linux-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
41+
env: TARGET=powerpc64-unknown-linux-gnu STDARCH_DISABLE_ASSERT_INSTR=1
4242
- name: "powerpc64le-unknown-linux-gnu - no assert_instr"
43-
env: TARGET=powerpc64le-unknown-linux-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
43+
env: TARGET=powerpc64le-unknown-linux-gnu STDARCH_DISABLE_ASSERT_INSTR=1
4444
- name: "s390x-unknown-linux-gnu"
4545
env: TARGET=s390x-unknown-linux-gnu
4646
- name: "i686-apple-darwin"
@@ -90,7 +90,7 @@ matrix:
9090
install: true
9191
script: ci/dox.sh
9292
- name: "Automatic verification: x86 / x86_64 / arm / aarch64 / mips*"
93-
script: cargo test --manifest-path crates/stdsimd-verify/Cargo.toml
93+
script: cargo test --manifest-path crates/stdarch-verify/Cargo.toml
9494
install: true
9595
- name: "rustfmt"
9696
install: true

CONTRIBUTING.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Contributing to stdsimd
1+
# Contributing to stdarch
22

3-
The `stdsimd` crate is more than willing to accept contributions! First you'll
3+
The `stdarch` crate is more than willing to accept contributions! First you'll
44
probably want to check out the repository and make sure that tests pass for you:
55

66
```
7-
$ git clone https://github.com/rust-lang-nursery/stdsimd
8-
$ cd stdsimd
7+
$ git clone https://github.com/rust-lang/stdarch
8+
$ cd stdarch
99
$ cargo +nightly test
1010
```
1111

@@ -29,7 +29,7 @@ around! Feel free to ping either @BurntSushi or @alexcrichton with questions.
2929

3030
[gitter]: https://gitter.im/rust-impl-period/WG-libs-simd
3131

32-
# How to write examples for stdsimd intrinsics
32+
# How to write examples for stdarch intrinsics
3333

3434
There are a few features that must be enabled for the given intrinsic to work
3535
properly and the example must only be run by `cargo test --doc` when the feature
@@ -44,9 +44,9 @@ to ensure your example works as expected.
4444
/// # // We need target_feature for the intrinsic to work
4545
/// # #![feature(target_feature)]
4646
/// #
47-
/// # // rustdoc by default uses `extern crate stdsimd`, but we need the
47+
/// # // rustdoc by default uses `extern crate stdarch`, but we need the
4848
/// # // `#[macro_use]`
49-
/// # #[macro_use] extern crate stdsimd;
49+
/// # #[macro_use] extern crate stdarch;
5050
/// #
5151
/// # // The real main function
5252
/// # fn main() {
@@ -69,12 +69,12 @@ to ensure your example works as expected.
6969
If some of the above syntax does not look familiar, the [Documentation as tests] section
7070
of the [Rust Book] describes the `rustdoc` syntax quite well. As always, feel free
7171
to [join us on gitter][gitter] and ask us if you hit any snags, and thank you for helping
72-
to improve the documentation of `stdsimd`!
72+
to improve the documentation of `stdarch`!
7373

74-
[new]: https://github.com/rust-lang-nursery/stdsimd/issues/new
75-
[issues]: https://github.com/rust-lang-nursery/stdsimd/issues
76-
[help]: https://github.com/rust-lang-nursery/stdsimd/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22
77-
[impl]: https://github.com/rust-lang-nursery/stdsimd/issues?q=is%3Aissue+is%3Aopen+label%3Aimpl-period
78-
[vendor]: https://github.com/rust-lang-nursery/stdsimd/issues/40
74+
[new]: https://github.com/rust-lang/stdarch/issues/new
75+
[issues]: https://github.com/rust-lang/stdarch/issues
76+
[help]: https://github.com/rust-lang/stdarch/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22
77+
[impl]: https://github.com/rust-lang/stdarch/issues?q=is%3Aissue+is%3Aopen+label%3Aimpl-period
78+
[vendor]: https://github.com/rust-lang/stdarch/issues/40
7979
[Documentation as tests]: https://doc.rust-lang.org/book/first-edition/documentation.html#documentation-as-tests
8080
[Rust Book]: https://doc.rust-lang.org/book/first-edition

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
members = [
3-
"crates/stdsimd-verify",
3+
"crates/stdarch-verify",
44
"crates/core_arch",
55
"crates/std_detect",
66
"examples/"

QUESTIONS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ This program emits `psllw` instead of `pslliw` instruction. `pslliw` should be
22
usable here since `imm8` is a constant:
33

44
```rust
5-
extern crate stdsimd;
5+
extern crate stdarch;
66

77
use std::env;
8-
use stdsimd as s;
8+
use stdarch as s;
99

1010
fn main() {
1111
let imm8: i32 = env::args().nth(1).unwrap().parse().unwrap();

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
stdsimd - Rust's standard library SIMD components
1+
stdarch - Rust's standard library SIMD components
22
=======
33

44
[![Travis-CI Status]][travis] [![Appveyor Status]][appveyor]
@@ -29,9 +29,9 @@ To do a release of the `core_arch` and `std_detect` crates,
2929
https://github.com/rust-lang/cargo/issues/4242),
3030
* publish the crates.
3131

32-
[travis]: https://travis-ci.com/rust-lang-nursery/stdsimd
33-
[Travis-CI Status]: https://travis-ci.com/rust-lang-nursery/stdsimd.svg?branch=master
34-
[appveyor]: https://ci.appveyor.com/project/rust-lang-libs/stdsimd/branch/master
32+
[travis]: https://travis-ci.com/rust-lang/stdarch
33+
[Travis-CI Status]: https://travis-ci.com/rust-lang/stdarch.svg?branch=master
34+
[appveyor]: https://ci.appveyor.com/project/rust-lang-libs/stdarch/branch/master
3535
[Appveyor Status]: https://ci.appveyor.com/api/projects/status/ix74qhmilpibn00x/branch/master?svg=true
3636
[core_arch_crate_badge]: https://img.shields.io/crates/v/core_arch.svg
3737
[core_arch_crate_link]: https://crates.io/crates/core_arch

ci/run-docker.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -ex
88
run() {
99
target=$(echo "${1}" | sed 's/-emulated//')
1010
echo "Building docker container for TARGET=${1}"
11-
docker build -t stdsimd -f "ci/docker/${1}/Dockerfile" ci/
11+
docker build -t stdarch -f "ci/docker/${1}/Dockerfile" ci/
1212
mkdir -p target
1313
echo "Running docker"
1414
# shellcheck disable=SC2016
@@ -20,18 +20,18 @@ run() {
2020
--env CARGO_HOME=/cargo-h \
2121
--volume "$(rustc --print sysroot)":/rust:ro \
2222
--env TARGET="${target}" \
23-
--env STDSIMD_TEST_EVERYTHING \
24-
--env STDSIMD_ASSERT_INSTR_IGNORE \
25-
--env STDSIMD_DISABLE_ASSERT_INSTR \
23+
--env STDARCH_TEST_EVERYTHING \
24+
--env STDARCH_ASSERT_INSTR_IGNORE \
25+
--env STDARCH_DISABLE_ASSERT_INSTR \
2626
--env NOSTD \
2727
--env NORUN \
2828
--env RUSTFLAGS \
29-
--env STDSIMD_TEST_NORUN \
29+
--env STDARCH_TEST_NORUN \
3030
--volume "$(pwd)":/checkout:ro \
3131
--volume "$(pwd)"/target:/checkout/target \
3232
--workdir /checkout \
3333
--privileged \
34-
stdsimd \
34+
stdarch \
3535
bash \
3636
-c 'PATH=/rust/bin:$PATH exec ci/run.sh'
3737
}

ci/run.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -ex
1010
#export RUST_TEST_NOCAPTURE=1
1111
#export RUST_TEST_THREADS=1
1212

13-
RUSTFLAGS="$RUSTFLAGS --cfg stdsimd_strict"
13+
RUSTFLAGS="$RUSTFLAGS --cfg stdarch_strict"
1414

1515
case ${TARGET} in
1616
# On 32-bit use a static relocation model which avoids some extra
@@ -33,8 +33,8 @@ esac
3333
echo "RUSTFLAGS=${RUSTFLAGS}"
3434
echo "FEATURES=${FEATURES}"
3535
echo "OBJDUMP=${OBJDUMP}"
36-
echo "STDSIMD_DISABLE_ASSERT_INSTR=${STDSIMD_DISABLE_ASSERT_INSTR}"
37-
echo "STDSIMD_TEST_EVERYTHING=${STDSIMD_TEST_EVERYTHING}"
36+
echo "STDARCH_DISABLE_ASSERT_INSTR=${STDARCH_DISABLE_ASSERT_INSTR}"
37+
echo "STDARCH_TEST_EVERYTHING=${STDARCH_TEST_EVERYTHING}"
3838

3939
cargo_test() {
4040
cmd="cargo"
@@ -49,7 +49,7 @@ cargo_test() {
4949

5050
CORE_ARCH="--manifest-path=crates/core_arch/Cargo.toml"
5151
STD_DETECT="--manifest-path=crates/std_detect/Cargo.toml"
52-
STDSIMD_EXAMPLES="--manifest-path=examples/Cargo.toml"
52+
STDARCH_EXAMPLES="--manifest-path=examples/Cargo.toml"
5353
cargo_test "${CORE_ARCH} --release"
5454

5555
if [ "$NOSTD" != "1" ]; then
@@ -61,14 +61,14 @@ if [ "$NOSTD" != "1" ]; then
6161
cargo_test "${STD_DETECT} --no-default-features --features=std_detect_dlsym_getauxval"
6262
cargo_test "${STD_DETECT} --no-default-features --features=std_detect_dlsym_getauxval,std_detect_file_io"
6363

64-
cargo_test "${STDSIMD_EXAMPLES}"
65-
cargo_test "${STDSIMD_EXAMPLES} --release"
64+
cargo_test "${STDARCH_EXAMPLES}"
65+
cargo_test "${STDARCH_EXAMPLES} --release"
6666
fi
6767

6868
# Test targets compiled with extra features.
6969
case ${TARGET} in
7070
x86*)
71-
export STDSIMD_DISABLE_ASSERT_INSTR=1
71+
export STDARCH_DISABLE_ASSERT_INSTR=1
7272
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
7373
cargo_test "--release"
7474
;;

crates/assert-instr-macro/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Implementation of the `#[assert_instr]` macro
22
//!
3-
//! This macro is used when testing the `stdsimd` crate and is used to generate
3+
//! This macro is used when testing the `stdarch` crate and is used to generate
44
//! test cases to assert that functions do indeed contain the instructions that
55
//! we're expecting them to contain.
66
//!
@@ -41,7 +41,7 @@ pub fn assert_instr(
4141
// Disable assert_instr for x86 targets compiled with avx enabled, which
4242
// causes LLVM to generate different intrinsics that the ones we are
4343
// testing for.
44-
let disable_assert_instr = std::env::var("STDSIMD_DISABLE_ASSERT_INSTR").is_ok();
44+
let disable_assert_instr = std::env::var("STDARCH_DISABLE_ASSERT_INSTR").is_ok();
4545

4646
// If instruction tests are disabled avoid emitting this shim at all, just
4747
// return the original item without our attribute.
@@ -57,7 +57,7 @@ pub fn assert_instr(
5757
let assert_name = syn::Ident::new(&format!("assert_{}_{}", name, instr_str), name.span());
5858
// These name has to be unique enough for us to find it in the disassembly later on:
5959
let shim_name = syn::Ident::new(
60-
&format!("stdsimd_test_shim_{}_{}", name, instr_str),
60+
&format!("stdarch_test_shim_{}_{}", name, instr_str),
6161
name.span(),
6262
);
6363
let mut inputs = Vec::new();
@@ -123,7 +123,7 @@ pub fn assert_instr(
123123
// generate some code that's hopefully very tight in terms of
124124
// codegen but is otherwise unique to prevent code from being
125125
// folded.
126-
::stdsimd_test::_DONT_DEDUP.store(
126+
::stdarch_test::_DONT_DEDUP.store(
127127
std::mem::transmute(#shim_name_str.as_bytes().as_ptr()),
128128
std::sync::atomic::Ordering::Relaxed,
129129
);
@@ -142,7 +142,7 @@ pub fn assert_instr(
142142
// code:
143143
unsafe { asm!("" : : "r"(#shim_name as usize) : "memory" : "volatile") };
144144

145-
::stdsimd_test::assert(#shim_name as usize,
145+
::stdarch_test::assert(#shim_name as usize,
146146
stringify!(#shim_name),
147147
#instr);
148148
}

crates/core_arch/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ authors = [
88
]
99
description = "`core::arch` - Rust's core library architecture-specific intrinsics."
1010
documentation = "https://docs.rs/core_arch"
11-
homepage = "https://github.com/rust-lang-nursery/stdsimd"
12-
repository = "https://github.com/rust-lang-nursery/stdsimd"
11+
homepage = "https://github.com/rust-lang/stdarch"
12+
repository = "https://github.com/rust-lang/stdarch"
1313
readme = "README.md"
1414
keywords = ["core", "simd", "arch", "intrinsics"]
1515
categories = ["hardware-support", "no-std"]
@@ -18,14 +18,14 @@ build = "build.rs"
1818
edition = "2018"
1919

2020
[badges]
21-
travis-ci = { repository = "rust-lang-nursery/stdsimd" }
22-
appveyor = { repository = "rust-lang-nursery/stdsimd" }
23-
is-it-maintained-issue-resolution = { repository = "rust-lang-nursery/stdsimd" }
24-
is-it-maintained-open-issues = { repository = "rust-lang-nursery/stdsimd" }
21+
travis-ci = { repository = "rust-lang/stdarch" }
22+
appveyor = { repository = "rust-lang/stdarch" }
23+
is-it-maintained-issue-resolution = { repository = "rust-lang/stdarch" }
24+
is-it-maintained-open-issues = { repository = "rust-lang/stdarch" }
2525
maintenance = { status = "experimental" }
2626

2727
[dev-dependencies]
28-
stdsimd-test = { version = "0.*", path = "../stdsimd-test" }
28+
stdarch-test = { version = "0.*", path = "../stdarch-test" }
2929
std_detect = { version = "0.*", path = "../std_detect" }
3030

3131
[target.wasm32-unknown-unknown.dev-dependencies]

crates/core_arch/README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ are:
3939
* [How to get started][contrib]
4040
* [How to help implement intrinsics][help-implement]
4141

42-
[contrib]: https://github.com/rust-lang-nursery/stdsimd/blob/master/CONTRIBUTING.md
43-
[help-implement]: https://github.com/rust-lang-nursery/stdsimd/issues/40
44-
[i686]: https://rust-lang-nursery.github.io/stdsimd/i686/core_arch/
45-
[x86_64]: https://rust-lang-nursery.github.io/stdsimd/x86_64/core_arch/
46-
[arm]: https://rust-lang-nursery.github.io/stdsimd/arm/core_arch/
47-
[aarch64]: https://rust-lang-nursery.github.io/stdsimd/aarch64/core_arch/
48-
[powerpc]: https://rust-lang-nursery.github.io/stdsimd/powerpc/core_arch/
49-
[powerpc64]: https://rust-lang-nursery.github.io/stdsimd/powerpc64/core_arch/
42+
[contrib]: https://github.com/rust-lang/stdarch/blob/master/CONTRIBUTING.md
43+
[help-implement]: https://github.com/rust-lang/stdarch/issues/40
44+
[i686]: https://rust-lang.github.io/stdarch/i686/core_arch/
45+
[x86_64]: https://rust-lang.github.io/stdarch/x86_64/core_arch/
46+
[arm]: https://rust-lang.github.io/stdarch/arm/core_arch/
47+
[aarch64]: https://rust-lang.github.io/stdarch/aarch64/core_arch/
48+
[powerpc]: https://rust-lang.github.io/stdarch/powerpc/core_arch/
49+
[powerpc64]: https://rust-lang.github.io/stdarch/powerpc64/core_arch/
5050

5151
# License
5252

@@ -62,9 +62,9 @@ Unless you explicitly state otherwise, any contribution intentionally submitted
6262
for inclusion in `core_arch` by you, as defined in the Apache-2.0 license,
6363
shall be dual licensed as above, without any additional terms or conditions.
6464

65-
[travis]: https://travis-ci.com/rust-lang-nursery/stdsimd
66-
[Travis-CI Status]: https://travis-ci.com/rust-lang-nursery/stdsimd.svg?branch=master
67-
[appveyor]: https://ci.appveyor.com/project/rust-lang-libs/stdsimd/branch/master
65+
[travis]: https://travis-ci.com/rust-lang/stdarch
66+
[Travis-CI Status]: https://travis-ci.com/rust-lang/stdarch.svg?branch=master
67+
[appveyor]: https://ci.appveyor.com/project/rust-lang-libs/stdarch/branch/master
6868
[Appveyor Status]: https://ci.appveyor.com/api/projects/status/ix74qhmilpibn00x/branch/master?svg=true
6969
[core_arch_crate_badge]: https://img.shields.io/crates/v/core_arch.svg
7070
[core_arch_crate_link]: https://crates.io/crates/core_arch

crates/core_arch/src/aarch64/crc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C" {
1919
}
2020

2121
#[cfg(test)]
22-
use stdsimd_test::assert_instr;
22+
use stdarch_test::assert_instr;
2323

2424
/// CRC32 single round checksum for bytes (8 bits).
2525
#[inline]
@@ -89,7 +89,7 @@ pub unsafe fn __crc32cd(crc: u32, data: u64) -> u32 {
8989
mod tests {
9090
use crate::core_arch::{aarch64::*, simd::*};
9191
use std::mem;
92-
use stdsimd_test::simd_test;
92+
use stdarch_test::simd_test;
9393

9494
#[simd_test(enable = "crc")]
9595
unsafe fn test_crc32b() {

crates/core_arch/src/aarch64/crypto.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extern "C" {
3535
}
3636

3737
#[cfg(test)]
38-
use stdsimd_test::assert_instr;
38+
use stdarch_test::assert_instr;
3939

4040
/// AES single round encryption.
4141
#[inline]
@@ -165,7 +165,7 @@ pub unsafe fn vsha256su1q_u32(
165165
mod tests {
166166
use crate::core_arch::{aarch64::*, simd::*};
167167
use std::mem;
168-
use stdsimd_test::simd_test;
168+
use stdarch_test::simd_test;
169169

170170
#[simd_test(enable = "crypto")]
171171
unsafe fn test_vaeseq_u8() {

crates/core_arch/src/aarch64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub use self::crc::*;
2121
pub use super::acle::*;
2222

2323
#[cfg(test)]
24-
use stdsimd_test::assert_instr;
24+
use stdarch_test::assert_instr;
2525

2626
/// Generates the trap instruction `BRK 1`
2727
#[cfg_attr(test, assert_instr(brk))]

crates/core_arch/src/aarch64/neon.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{
99
mem::{transmute, zeroed},
1010
};
1111
#[cfg(test)]
12-
use stdsimd_test::assert_instr;
12+
use stdarch_test::assert_instr;
1313

1414
types! {
1515
/// ARM-specific 64-bit wide vector of one packed `f64`.
@@ -1546,7 +1546,7 @@ pub unsafe fn vqtbx4q_p8(a: poly8x16_t, t: poly8x16x4_t, idx: uint8x16_t) -> pol
15461546
mod tests {
15471547
use crate::core_arch::{aarch64::*, simd::*};
15481548
use std::mem::transmute;
1549-
use stdsimd_test::simd_test;
1549+
use stdarch_test::simd_test;
15501550

15511551
#[simd_test(enable = "neon")]
15521552
unsafe fn test_vadd_f64() {

0 commit comments

Comments
 (0)