From 9303a2dfb4629346632df68e212c18d098a87791 Mon Sep 17 00:00:00 2001 From: Akhil Indurti Date: Thu, 8 Aug 2019 21:10:10 -0400 Subject: [PATCH] Minor Documentation Fixes Issue in Shuffle s/result[i] = b[s[i] - S.lanes]/result[i] = b[s[i] - S.lanes Issue in Bit Shifts s/def S.shl(a, x):/def S.shl(a, y): --- proposals/simd/SIMD.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proposals/simd/SIMD.md b/proposals/simd/SIMD.md index 41fb3f733..fd4736946 100644 --- a/proposals/simd/SIMD.md +++ b/proposals/simd/SIMD.md @@ -300,7 +300,7 @@ def S.shuffle(a, b, s): if s[i] < S.lanes: result[i] = a[s[i]] else: - result[i] = b[s[i] - S.lanes] + result[i] = b[s[i] - S.lanes return result ``` @@ -469,7 +469,7 @@ Shift the bits in each lane to the left by the same amount. Only the low bits of the shift amount are used: ```python -def S.shl(a, x): +def S.shl(a, y): # Number of bits to shift: 0 .. S.LaneBits - 1. amount = y mod S.LaneBits def shift(x):