diff options
| author | Cherry Mui <cherryyz@google.com> | 2025-12-17 11:00:36 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2025-12-17 13:38:56 -0800 |
| commit | ad91f5d241f3b8e85dc866d0087c3f13af96ef33 (patch) | |
| tree | 2543d5a059ccdb4109443d8732b155c11dd9729b /src/simd/archsimd/_gen | |
| parent | b8c4cc63e77bd457dffa6ec83a3ff65382dac94b (diff) | |
| download | go-ad91f5d241f3b8e85dc866d0087c3f13af96ef33.tar.xz | |
simd/archsimd: reword documentation of shfit operations
Say the name of the parameter, instead of "the immediate".
Don't say "Emptied bits are zeroed", which is implied by the shift
operation in Go (and perhaps many other languages). For right
shifts, say signed or unsigned shifts instead.
Change-Id: I29c9c0e218bfaeef55b03d92d44762e34f006654
Reviewed-on: https://go-review.googlesource.com/c/go/+/730720
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/simd/archsimd/_gen')
| -rw-r--r-- | src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/categories.yaml | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/categories.yaml b/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/categories.yaml index 0d0b006cfb..0d205aab79 100644 --- a/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/categories.yaml +++ b/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/categories.yaml @@ -4,21 +4,21 @@ specialLower: sftimm commutative: false documentation: !string |- - // NAME shifts each element to the left by the specified number of bits. Emptied lower bits are zeroed. + // NAME shifts each element to the left by y bits. - go: ShiftAllRight signed: false nameAndSizeCheck: true specialLower: sftimm commutative: false documentation: !string |- - // NAME shifts each element to the right by the specified number of bits. Emptied upper bits are zeroed. + // NAME performs an unsigned right shift on each element by y bits. - go: ShiftAllRight signed: true specialLower: sftimm nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME shifts each element to the right by the specified number of bits. Emptied upper bits are filled with the sign bit. + // NAME performs a signed right shift on each element by y bits. - go: shiftAllLeftConst # no APIs, only ssa ops. noTypes: "true" noGenericOps: "true" @@ -44,24 +44,24 @@ nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME shifts each element in x to the left by the number of bits specified in y's corresponding elements. Emptied lower bits are zeroed. + // NAME shifts each element in x to the left by the number of bits specified in y's corresponding elements. - go: ShiftRight signed: false nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME shifts each element in x to the right by the number of bits specified in y's corresponding elements. Emptied upper bits are zeroed. + // NAME performs an unsigned right shift on each element in x by the number of bits specified in y's corresponding elements. - go: ShiftRight signed: true nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME shifts each element in x to the right by the number of bits specified in y's corresponding elements. Emptied upper bits are filled with the sign bit. + // NAME performs a signed right shift on each element in x by the number of bits specified in y's corresponding elements. - go: RotateAllLeft nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME rotates each element to the left by the number of bits specified by the immediate. + // NAME rotates each element to the left by the number of bits specified by shift. - go: RotateLeft nameAndSizeCheck: true commutative: false @@ -71,7 +71,7 @@ nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME rotates each element to the right by the number of bits specified by the immediate. + // NAME rotates each element to the right by the number of bits specified by shift. - go: RotateRight nameAndSizeCheck: true commutative: false @@ -81,23 +81,23 @@ nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME shifts each element of x to the left by the number of bits specified by the - // immediate(only the lower 5 bits are used), and then copies the upper bits of y to the emptied lower bits of the shifted x. + // NAME shifts each element of x to the left by the number of bits specified by + // shift (only the lower 5 bits are used), and then copies the upper bits of y to the emptied lower bits of the shifted x. - go: ShiftAllRightConcat nameAndSizeCheck: true commutative: false documentation: !string |- - // NAME shifts each element of x to the right by the number of bits specified by the - // immediate(only the lower 5 bits are used), and then copies the lower bits of y to the emptied upper bits of the shifted x. + // NAME shifts each element of x to the right by the number of bits specified by + // shift (only the lower 5 bits are used), and then copies the lower bits of y to the emptied upper bits of the shifted x. - go: ShiftLeftConcat nameAndSizeCheck: true commutative: false documentation: !string |- // NAME shifts each element of x to the left by the number of bits specified by the - // corresponding elements in y(only the lower 5 bits are used), and then copies the upper bits of z to the emptied lower bits of the shifted x. + // corresponding elements in y (only the lower 5 bits are used), and then copies the upper bits of z to the emptied lower bits of the shifted x. - go: ShiftRightConcat nameAndSizeCheck: true commutative: false documentation: !string |- // NAME shifts each element of x to the right by the number of bits specified by the - // corresponding elements in y(only the lower 5 bits are used), and then copies the lower bits of z to the emptied upper bits of the shifted x. + // corresponding elements in y (only the lower 5 bits are used), and then copies the lower bits of z to the emptied upper bits of the shifted x. |
