Skip to content

Commit 0716b22

Browse files
steffahndtolnay
authored andcommitted
Fix a bunch of typos
1 parent a389fee commit 0716b22

File tree

20 files changed

+47
-47
lines changed

20 files changed

+47
-47
lines changed

ci/docker/x86_64-linux-android/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ COPY android-install-ndk.sh /android/
1717
RUN sh /android/android-install-ndk.sh $ANDROID_ARCH
1818

1919
# We do not run x86_64-linux-android tests on an android emulator.
20-
# See ci/android-sysimage.sh for informations about how tests are run.
20+
# See ci/android-sysimage.sh for information about how tests are run.
2121
COPY android-sysimage.sh /android/
2222
RUN bash /android/android-sysimage.sh x86_64 x86_64-24_r07.zip
2323

crates/core_arch/src/aarch64/prefetch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub const _PREFETCH_LOCALITY3: i32 = 3;
6666
#[rustc_legacy_const_generics(1, 2)]
6767
// FIXME: Replace this with the standard ACLE __pld/__pldx/__pli/__plix intrinsics
6868
pub unsafe fn _prefetch<const RW: i32, const LOCALITY: i32>(p: *const i8) {
69-
// We use the `llvm.prefetch` instrinsic with `cache type` = 1 (data cache).
69+
// We use the `llvm.prefetch` intrinsic with `cache type` = 1 (data cache).
7070
static_assert_imm1!(RW);
7171
static_assert_imm2!(LOCALITY);
7272
prefetch(p, RW, LOCALITY, 1);

crates/core_arch/src/arm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub unsafe fn udf() -> ! {
9393
/// This provides a hint to debugging and related systems. The argument must be
9494
/// a constant integer from 0 to 15 inclusive. See implementation documentation
9595
/// for the effect (if any) of this instruction and the meaning of the
96-
/// argument. This is available only when compliling for AArch32.
96+
/// argument. This is available only when compiling for AArch32.
9797
// Section 10.1 of ACLE says that the supported arches are: 7, 7-M
9898
// "The DBG hint instruction is added in ARMv7. It is UNDEFINED in the ARMv6 base architecture, and
9999
// executes as a NOP instruction in ARMv6K and ARMv6T2." - ARM Architecture Reference Manual ARMv7-A

crates/core_arch/src/arm_shared/barrier/v8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct NSHLD;
1616

1717
dmb_dsb!(NSHLD);
1818

19-
/// Outher Shareable is the required shareability domain, reads are the required
19+
/// Outer Shareable is the required shareability domain, reads are the required
2020
/// access type
2121
pub struct OSHLD;
2222

crates/core_arch/src/wasm32/atomic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern "C" {
1616
/// pointed to by `ptr` is equal to `expression` (performing this action
1717
/// atomically).
1818
///
19-
/// The argument `timeout_ns` is a maxinum number of nanoseconds the calling
19+
/// The argument `timeout_ns` is a maximum number of nanoseconds the calling
2020
/// thread will be blocked for, if it blocks. If the timeout is negative then
2121
/// the calling thread will be blocked forever.
2222
///
@@ -46,7 +46,7 @@ pub unsafe fn memory_atomic_wait32(ptr: *mut i32, expression: i32, timeout_ns: i
4646
/// pointed to by `ptr` is equal to `expression` (performing this action
4747
/// atomically).
4848
///
49-
/// The argument `timeout_ns` is a maxinum number of nanoseconds the calling
49+
/// The argument `timeout_ns` is a maximum number of nanoseconds the calling
5050
/// thread will be blocked for, if it blocks. If the timeout is negative then
5151
/// the calling thread will be blocked forever.
5252
///

crates/core_arch/src/wasm32/simd128.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ types! {
3333
/// * four 32-bit floats (`f32`)
3434
/// * two 64-bit floats (`f64`)
3535
///
36-
/// The `v128` type in Rust is intended to be quite analagous to the `v128`
36+
/// The `v128` type in Rust is intended to be quite analogous to the `v128`
3737
/// type in WebAssembly. Operations on `v128` can only be performed with the
3838
/// functions in this module.
3939
// N.B., internals here are arbitrary.
@@ -2305,7 +2305,7 @@ pub fn i8x16_abs(a: v128) -> v128 {
23052305
}
23062306
}
23072307

2308-
/// Negates a 128-bit vectors intepreted as sixteen 8-bit signed integers
2308+
/// Negates a 128-bit vectors interpreted as sixteen 8-bit signed integers
23092309
#[inline]
23102310
#[cfg_attr(test, assert_instr(i8x16.neg))]
23112311
#[target_feature(enable = "simd128")]
@@ -2602,7 +2602,7 @@ pub fn i16x8_abs(a: v128) -> v128 {
26022602
}
26032603
}
26042604

2605-
/// Negates a 128-bit vectors intepreted as eight 16-bit signed integers
2605+
/// Negates a 128-bit vectors interpreted as eight 16-bit signed integers
26062606
#[inline]
26072607
#[cfg_attr(test, assert_instr(i16x8.neg))]
26082608
#[target_feature(enable = "simd128")]
@@ -3090,7 +3090,7 @@ pub fn i32x4_abs(a: v128) -> v128 {
30903090
}
30913091
}
30923092

3093-
/// Negates a 128-bit vectors intepreted as four 32-bit signed integers
3093+
/// Negates a 128-bit vectors interpreted as four 32-bit signed integers
30943094
#[inline]
30953095
#[cfg_attr(test, assert_instr(i32x4.neg))]
30963096
#[target_feature(enable = "simd128")]
@@ -3472,7 +3472,7 @@ pub fn i64x2_abs(a: v128) -> v128 {
34723472
}
34733473
}
34743474

3475-
/// Negates a 128-bit vectors intepreted as two 64-bit signed integers
3475+
/// Negates a 128-bit vectors interpreted as two 64-bit signed integers
34763476
#[inline]
34773477
#[cfg_attr(test, assert_instr(i64x2.neg))]
34783478
#[target_feature(enable = "simd128")]

crates/core_arch/src/x86/avx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub unsafe fn _mm256_add_ps(a: __m256, b: __m256) -> __m256 {
5353
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_and_pd)
5454
#[inline]
5555
#[target_feature(enable = "avx")]
56-
// FIXME: Should be 'vandpd' instuction.
56+
// FIXME: Should be 'vandpd' instruction.
5757
// See https://github.com/rust-lang/stdarch/issues/71
5858
#[cfg_attr(test, assert_instr(vandps))]
5959
#[stable(feature = "simd_x86", since = "1.27.0")]
@@ -83,7 +83,7 @@ pub unsafe fn _mm256_and_ps(a: __m256, b: __m256) -> __m256 {
8383
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_or_pd)
8484
#[inline]
8585
#[target_feature(enable = "avx")]
86-
// FIXME: should be `vorpd` instuction.
86+
// FIXME: should be `vorpd` instruction.
8787
// See <https://github.com/rust-lang/stdarch/issues/71>.
8888
#[cfg_attr(test, assert_instr(vorps))]
8989
#[stable(feature = "simd_x86", since = "1.27.0")]

crates/core_arch/src/x86/avx512f.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19479,7 +19479,7 @@ pub unsafe fn _mm_maskz_permute_pd<const IMM2: i32>(k: __mmask8, a: __m128d) ->
1947919479
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_permutex_epi64&expand=4208)
1948019480
#[inline]
1948119481
#[target_feature(enable = "avx512f")]
19482-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermq
19482+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermq
1948319483
#[rustc_legacy_const_generics(1)]
1948419484
pub unsafe fn _mm512_permutex_epi64<const MASK: i32>(a: __m512i) -> __m512i {
1948519485
static_assert_imm8!(MASK);
@@ -19535,7 +19535,7 @@ pub unsafe fn _mm512_maskz_permutex_epi64<const MASK: i32>(k: __mmask8, a: __m51
1953519535
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_permutex_epi64&expand=4205)
1953619536
#[inline]
1953719537
#[target_feature(enable = "avx512f,avx512vl")]
19538-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermq
19538+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermq
1953919539
#[rustc_legacy_const_generics(1)]
1954019540
pub unsafe fn _mm256_permutex_epi64<const MASK: i32>(a: __m256i) -> __m256i {
1954119541
static_assert_imm8!(MASK);
@@ -19587,7 +19587,7 @@ pub unsafe fn _mm256_maskz_permutex_epi64<const MASK: i32>(k: __mmask8, a: __m25
1958719587
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_permutex_pd&expand=4214)
1958819588
#[inline]
1958919589
#[target_feature(enable = "avx512f")]
19590-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermpd
19590+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermpd
1959119591
#[rustc_legacy_const_generics(1)]
1959219592
pub unsafe fn _mm512_permutex_pd<const MASK: i32>(a: __m512d) -> __m512d {
1959319593
static_assert_imm8!(MASK);
@@ -19612,7 +19612,7 @@ pub unsafe fn _mm512_permutex_pd<const MASK: i32>(a: __m512d) -> __m512d {
1961219612
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_mask_permutex_pd&expand=4212)
1961319613
#[inline]
1961419614
#[target_feature(enable = "avx512f")]
19615-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermpd
19615+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermpd
1961619616
#[rustc_legacy_const_generics(3)]
1961719617
pub unsafe fn _mm512_mask_permutex_pd<const MASK: i32>(
1961819618
src: __m512d,
@@ -19628,7 +19628,7 @@ pub unsafe fn _mm512_mask_permutex_pd<const MASK: i32>(
1962819628
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_maskz_permutex_pd&expand=4213)
1962919629
#[inline]
1963019630
#[target_feature(enable = "avx512f")]
19631-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermpd
19631+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermpd
1963219632
#[rustc_legacy_const_generics(2)]
1963319633
pub unsafe fn _mm512_maskz_permutex_pd<const MASK: i32>(k: __mmask8, a: __m512d) -> __m512d {
1963419634
let r = _mm512_permutex_pd::<MASK>(a);
@@ -19641,7 +19641,7 @@ pub unsafe fn _mm512_maskz_permutex_pd<const MASK: i32>(k: __mmask8, a: __m512d)
1964119641
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_permutex_pd&expand=4211)
1964219642
#[inline]
1964319643
#[target_feature(enable = "avx512f,avx512vl")]
19644-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermpd
19644+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermpd
1964519645
#[rustc_legacy_const_generics(1)]
1964619646
pub unsafe fn _mm256_permutex_pd<const MASK: i32>(a: __m256d) -> __m256d {
1964719647
static_assert_imm8!(MASK);
@@ -19662,7 +19662,7 @@ pub unsafe fn _mm256_permutex_pd<const MASK: i32>(a: __m256d) -> __m256d {
1966219662
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_mask_permutex_pd&expand=4209)
1966319663
#[inline]
1966419664
#[target_feature(enable = "avx512f,avx512vl")]
19665-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermpd
19665+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermpd
1966619666
#[rustc_legacy_const_generics(3)]
1966719667
pub unsafe fn _mm256_mask_permutex_pd<const MASK: i32>(
1966819668
src: __m256d,
@@ -19679,7 +19679,7 @@ pub unsafe fn _mm256_mask_permutex_pd<const MASK: i32>(
1967919679
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_maskz_permutex_pd&expand=4210)
1968019680
#[inline]
1968119681
#[target_feature(enable = "avx512f,avx512vl")]
19682-
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //shoud be vpermpd
19682+
#[cfg_attr(test, assert_instr(vperm, MASK = 0b10_01_10_11))] //should be vpermpd
1968319683
#[rustc_legacy_const_generics(2)]
1968419684
pub unsafe fn _mm256_maskz_permutex_pd<const MASK: i32>(k: __mmask8, a: __m256d) -> __m256d {
1968519685
static_assert_imm8!(MASK);

crates/core_arch/src/x86/fxsr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! FXSR floating-point context fast save and restor.
1+
//! FXSR floating-point context fast save and restore.
22
33
#[cfg(test)]
44
use stdarch_test::assert_instr;

crates/core_arch/src/x86/sse.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,19 +1412,19 @@ pub unsafe fn _mm_getcsr() -> u32 {
14121412
/// * `_MM_EXCEPT_DENORM`: An operation attempted to operate on a denormalized
14131413
/// number. Mainly this can cause loss of precision.
14141414
///
1415-
/// * `_MM_EXCEPT_DIV_ZERO`: Division by zero occured.
1415+
/// * `_MM_EXCEPT_DIV_ZERO`: Division by zero occurred.
14161416
///
1417-
/// * `_MM_EXCEPT_OVERFLOW`: A numeric overflow exception occured, i.e., a
1417+
/// * `_MM_EXCEPT_OVERFLOW`: A numeric overflow exception occurred, i.e., a
14181418
/// result was too large to be represented (e.g., an `f32` with absolute
14191419
/// value
14201420
/// greater than `2^128`).
14211421
///
1422-
/// * `_MM_EXCEPT_UNDERFLOW`: A numeric underflow exception occured, i.e., a
1422+
/// * `_MM_EXCEPT_UNDERFLOW`: A numeric underflow exception occurred, i.e., a
14231423
/// result was too small to be represented in a normalized way (e.g., an
14241424
/// `f32`
14251425
/// with absulte value smaller than `2^-126`.)
14261426
///
1427-
/// * `_MM_EXCEPT_INEXACT`: An inexact-result exception occured (a.k.a.
1427+
/// * `_MM_EXCEPT_INEXACT`: An inexact-result exception occurred (a.k.a.
14281428
/// precision exception). This means some precision was lost due to rounding.
14291429
/// For example, the fraction `1/3` cannot be represented accurately in a
14301430
/// 32 or 64 bit float and computing it would cause this exception to be
@@ -1752,7 +1752,7 @@ pub const _MM_HINT_ET1: i32 = 6;
17521752
#[rustc_legacy_const_generics(1)]
17531753
#[stable(feature = "simd_x86", since = "1.27.0")]
17541754
pub unsafe fn _mm_prefetch<const STRATEGY: i32>(p: *const i8) {
1755-
// We use the `llvm.prefetch` instrinsic with `cache type` = 1 (data cache).
1755+
// We use the `llvm.prefetch` intrinsic with `cache type` = 1 (data cache).
17561756
// `locality` and `rw` are based on our `STRATEGY`.
17571757
prefetch(p, (STRATEGY >> 2) & 1, STRATEGY & 3, 1);
17581758
}

0 commit comments

Comments
 (0)