aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflysand7 <yyakut.ac@gmail.com>2024-12-04 22:50:10 +1100
committerGitHub <noreply@github.com>2024-12-04 22:50:10 +1100
commit49b8abe3ef1da2c5b1095f287d5452219989550f (patch)
treefe0023b50443285054e1509b3dda62cc057c4aa0
parentba6224b61adfdf51c77919c442f260c758eb4509 (diff)
Apply suggestions from code review
Co-authored-by: Laytan <laytanlaats@hotmail.com>
-rw-r--r--core/simd/simd.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/simd/simd.odin b/core/simd/simd.odin
index 8a22af8bf..6dec5e1e1 100644
--- a/core/simd/simd.odin
+++ b/core/simd/simd.odin
@@ -632,7 +632,7 @@ saturating_add :: intrinsics.simd_saturating_add
Saturated subtraction of vectors.
The *saturated difference* is a difference, that upon overflow or underflow,
-instead of round-tripping, keeps the value clamped between the minimum and the
+instead of wrapping, keeps the value clamped between the minimum and the
maximum values of the lane type.
This procedure returns a vector where each lane is the saturated difference of
@@ -992,7 +992,7 @@ Example:
+-------+-------+-------+-------+
min: | 0 | 0 | 0 | 0 |
+-------+-------+-------+-------+
- +-------+-------+-------+-------+
+ +-------+-------+-------+-------+
max: | 1 | 1 | 1 | 1 |
+-------+-------+-------+-------+
res:
@@ -1260,7 +1260,7 @@ lanes_ge :: intrinsics.simd_lanes_ge
/*
Perform a gather load into a vector.
-A *gather* operation is memory load operation, that loads values from an vector
+A *gather* operation is a memory load operation, that loads values from a vector
of addresses into a single value vector. This can be used to achieve the
following results:
@@ -1525,7 +1525,7 @@ Graphic below shows the flow of lanes:
mask: | 1 | 0 | 1 | 0 |
+-------------------+
| | | |
- v X v X
+ v X v X
+-------------------+
vals: | v0 | v1 | v2 | v3 |
+-------------------+