Skip to content

Commit

Permalink
vertexcodec: Fix AArch64 compilation for gcc/Linux
Browse files Browse the repository at this point in the history
vreinterpret casts are noop on Apple clang, but meaningful for gcc.
  • Loading branch information
zeux committed Dec 6, 2024
1 parent 93eab2f commit 8675b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vertexcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ static const unsigned char* decodeBytesGroupSimdX(const unsigned char* data, uns
uint8x16_t sel4b = vcombine_u8(sel4l, sel4h);
#endif

uint32x4_t sel4 = vreinterpretq_u8_u32(sel4b);
uint32x4_t sel4 = vreinterpretq_u32_u8(sel4b);

// sel4 = 0x00 [6 2] [4 4] [2 6]
uint32x4_t sel0 = vshrq_n_u32(sel4, 18); // 0 0 0 0X
Expand Down

0 comments on commit 8675b0f

Please sign in to comment.