aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Rosdahl <[email protected]>2023-05-23 21:47:15 +0200
committerJack O'Connor <[email protected]>2023-05-23 14:39:27 -0700
commit2dd4e57f68d85f3983b1880b66250fc7bdf0b7c8 (patch)
tree3bfbedaa7e893cca918aec1c5eb2f5994c3420f7 /src
parent71a2646180c787e22f8681c5fec7655a0ad51e99 (diff)
Fix typos
Diffstat (limited to 'src')
-rw-r--r--src/rust_avx2.rs2
-rw-r--r--src/rust_sse2.rs2
-rw-r--r--src/rust_sse41.rs2
-rw-r--r--src/test.rs4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/rust_avx2.rs b/src/rust_avx2.rs
index 6290e70..a37a4ca 100644
--- a/src/rust_avx2.rs
+++ b/src/rust_avx2.rs
@@ -215,7 +215,7 @@ unsafe fn transpose_vecs(vecs: &mut [__m256i; DEGREE]) {
let gh_0145 = _mm256_unpacklo_epi32(vecs[6], vecs[7]);
let gh_2367 = _mm256_unpackhi_epi32(vecs[6], vecs[7]);
- // Interleave 64-bit lates. The low unpack is lanes 00/22 and the high is 11/33.
+ // Interleave 64-bit lanes. The low unpack is lanes 00/22 and the high is 11/33.
let abcd_04 = _mm256_unpacklo_epi64(ab_0145, cd_0145);
let abcd_15 = _mm256_unpackhi_epi64(ab_0145, cd_0145);
let abcd_26 = _mm256_unpacklo_epi64(ab_2367, cd_2367);
diff --git a/src/rust_sse2.rs b/src/rust_sse2.rs
index ec282d0..bd2be69 100644
--- a/src/rust_sse2.rs
+++ b/src/rust_sse2.rs
@@ -481,7 +481,7 @@ unsafe fn round(v: &mut [__m128i; 16], m: &[__m128i; 16], r: usize) {
#[inline(always)]
unsafe fn transpose_vecs(vecs: &mut [__m128i; DEGREE]) {
- // Interleave 32-bit lates. The low unpack is lanes 00/11 and the high is
+ // Interleave 32-bit lanes. The low unpack is lanes 00/11 and the high is
// 22/33. Note that this doesn't split the vector into two lanes, as the
// AVX2 counterparts do.
let ab_01 = _mm_unpacklo_epi32(vecs[0], vecs[1]);
diff --git a/src/rust_sse41.rs b/src/rust_sse41.rs
index 4b27f41..1ebadc4 100644
--- a/src/rust_sse41.rs
+++ b/src/rust_sse41.rs
@@ -472,7 +472,7 @@ unsafe fn round(v: &mut [__m128i; 16], m: &[__m128i; 16], r: usize) {
#[inline(always)]
unsafe fn transpose_vecs(vecs: &mut [__m128i; DEGREE]) {
- // Interleave 32-bit lates. The low unpack is lanes 00/11 and the high is
+ // Interleave 32-bit lanes. The low unpack is lanes 00/11 and the high is
// 22/33. Note that this doesn't split the vector into two lanes, as the
// AVX2 counterparts do.
let ab_01 = _mm_unpacklo_epi32(vecs[0], vecs[1]);
diff --git a/src/test.rs b/src/test.rs
index f5b3462..60bbe8c 100644
--- a/src/test.rs
+++ b/src/test.rs
@@ -52,7 +52,7 @@ pub const TEST_KEY_WORDS: CVWords = [
];
// Paint the input with a repeating byte pattern. We use a cycle length of 251,
-// because that's the largets prime number less than 256. This makes it
+// because that's the largest prime number less than 256. This makes it
// unlikely to swapping any two adjacent input blocks or chunks will give the
// same answer.
pub fn paint_test_input(buf: &mut [u8]) {
@@ -494,7 +494,7 @@ fn test_xof_seek() {
}
#[test]
-fn test_msg_schdule_permutation() {
+fn test_msg_schedule_permutation() {
let permutation = [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8];
let mut generated = [[0; 16]; 7];