From 47449e3abc8259c8d5e16046b811911e42453608 Mon Sep 17 00:00:00 2001 From: henrik-the-creator <132138756+henrik-the-creator@users.noreply.github.com> Date: Tue, 8 Sep 2026 11:12:21 -0700 Subject: [PATCH] Fixed typo in avx.odin simd_shuffle only wants constants in the shuffle indices so using this proc would generate a compiler error before this change. --- core/simd/x86/avx.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/simd/x86/avx.odin b/core/simd/x86/avx.odin index 5b0383526..bc7a89f14 100644 --- a/core/simd/x86/avx.odin +++ b/core/simd/x86/avx.odin @@ -744,11 +744,11 @@ _mm256_permute2f128_si256 :: #force_inline proc "c" (a, b: __m256i, $IMM8: u8) - r, __m256i(0), - 4 if ((IMM8 & 0xf) & 0b1000) != 0 else 0, - 4 if ((IMM8 & 0xf) & 0b1000) != 0 else 1, + 4 when ((IMM8 & 0xf) & 0b1000) != 0 else 0, + 4 when ((IMM8 & 0xf) & 0b1000) != 0 else 1, - 4 if (((IMM8 & 0xf0)>>4) & 0b1000) != 0 else 2, - 4 if (((IMM8 & 0xf0)>>4) & 0b1000) != 0 else 3, + 4 when (((IMM8 & 0xf0)>>4) & 0b1000) != 0 else 2, + 4 when (((IMM8 & 0xf0)>>4) & 0b1000) != 0 else 3, ) }