mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Fix documentation for simd_shuffle
This commit is contained in:
+1
-3
@@ -2100,8 +2100,7 @@ Example:
|
|||||||
|
|
||||||
a := #simd [4]f32 { 1, 2, 3, 4 }
|
a := #simd [4]f32 { 1, 2, 3, 4 }
|
||||||
b := #simd [4]f32 { 5, 6, 7, 8 }
|
b := #simd [4]f32 { 5, 6, 7, 8 }
|
||||||
indices := #simd[4]
|
res := simd.shuffle(a, b, 0, 4, 2, 5)
|
||||||
res := simd.swizzle(x, 0, 4, 2, 5)
|
|
||||||
fmt.println("res")
|
fmt.println("res")
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
@@ -2164,7 +2163,6 @@ Example:
|
|||||||
|
|
||||||
// The following example selects values from the two input vectors, `a` and `b`
|
// The following example selects values from the two input vectors, `a` and `b`
|
||||||
// into a single vector.
|
// into a single vector.
|
||||||
|
|
||||||
a := #simd [4] f64 { 1,2,3,4 }
|
a := #simd [4] f64 { 1,2,3,4 }
|
||||||
b := #simd [4] f64 { 5,6,7,8 }
|
b := #simd [4] f64 { 5,6,7,8 }
|
||||||
cond := #simd[4] int { 1, 0, 1, 0 }
|
cond := #simd[4] int { 1, 0, 1, 0 }
|
||||||
|
|||||||
Reference in New Issue
Block a user