about summary refs log tree commit diff
path: root/library/stdarch/examples/hex.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2021-03-11 17:30:30 -0600
committerGitHub <noreply@github.com>2021-03-11 23:30:30 +0000
commite35da555f89664497e18f2e8fd855537d2017a9c (patch)
tree2bff4b3ed26e22ef0ded0293a4b7b04ec6fe4b70 /library/stdarch/examples/hex.rs
parent7af3c0af25305e1813649bc065b836e33795ac0d (diff)
downloadrust-e35da555f89664497e18f2e8fd855537d2017a9c.tar.gz
rust-e35da555f89664497e18f2e8fd855537d2017a9c.zip
Update WebAssembly SIMD/Atomics (#1073)
Diffstat (limited to 'library/stdarch/examples/hex.rs')
-rw-r--r--library/stdarch/examples/hex.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/stdarch/examples/hex.rs b/library/stdarch/examples/hex.rs
index 5269958a4e2..edb1e129038 100644
--- a/library/stdarch/examples/hex.rs
+++ b/library/stdarch/examples/hex.rs
@@ -183,10 +183,10 @@ unsafe fn hex_encode_simd128<'a>(mut src: &[u8], dst: &'a mut [u8]) -> Result<&'
         // original source text order. The first element (res1) we'll store uses
         // all the low bytes from the 2 masks and the second element (res2) uses
         // all the upper bytes.
-        let res1 = v8x16_shuffle::<0, 16, 1, 17, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23>(
+        let res1 = i8x16_shuffle::<0, 16, 1, 17, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23>(
             masked2, masked1,
         );
-        let res2 = v8x16_shuffle::<8, 24, 9, 25, 10, 26, 11, 27, 12, 28, 13, 29, 14, 30, 15, 31>(
+        let res2 = i8x16_shuffle::<8, 24, 9, 25, 10, 26, 11, 27, 12, 28, 13, 29, 14, 30, 15, 31>(
             masked2, masked1,
         );