Skip to content

Commit

Permalink
Found a bug in use of AVX2 by compiling for it without hardware support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawoodoz committed Jan 26, 2025
1 parent 5a2eee2 commit 8f988fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DFPSR/base/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -3506,7 +3506,7 @@
// Warning! Behavior depends on endianness.
inline U32x8 reinterpret_U32FromU16(const U16x16& vector) {
#if defined USE_256BIT_X_SIMD
return U32x4(REINTERPRET_U16_TO_U32_SIMD256(vector.v));
return U32x8(REINTERPRET_U16_TO_U32_SIMD256(vector.v));
#else
const uint32_t *source = (const uint32_t*)vector.scalars;
return U32x8(source[0], source[1], source[2], source[3], source[4], source[5], source[6], source[7]);
Expand Down

0 comments on commit 8f988fc

Please sign in to comment.