Skip to content

Commit

Permalink
vertexcodec: Fix MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux committed Dec 6, 2024
1 parent 39b1a42 commit 3dbe427
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vertexcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,8 @@ inline const unsigned char* decodeBytesGroupSimd(const unsigned char* data, unsi
unsigned char mask1 = data[1];

// bit reverse
unsigned char mask0r = ((mask0 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;
unsigned char mask1r = ((mask1 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;
unsigned char mask0r = (unsigned char)(((mask0 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32);
unsigned char mask1r = (unsigned char)(((mask1 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32);

__m128i shuf = decodeShuffleMask(mask0r, mask1r);

Expand Down Expand Up @@ -991,8 +991,8 @@ static const unsigned char* decodeBytesGroupSimd(const unsigned char* data, unsi
unsigned char mask1 = data[1];

// bit reverse
unsigned char mask0r = ((mask0 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;
unsigned char mask1r = ((mask1 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;
unsigned char mask0r = (unsigned char)(((mask0 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32);
unsigned char mask1r = (unsigned char)(((mask1 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32);

uint8x8_t rest0 = vld1_u8(data + 2);
uint8x8_t rest1 = vld1_u8(data + 2 + kDecodeBytesGroupCount[mask0]);
Expand Down Expand Up @@ -1116,8 +1116,8 @@ static const unsigned char* decodeBytesGroupSimd(const unsigned char* data, unsi
unsigned char mask1 = data[1];

// bit reverse
unsigned char mask0r = ((mask0 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;
unsigned char mask1r = ((mask1 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;
unsigned char mask0r = (unsigned char)(((mask0 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32);
unsigned char mask1r = (unsigned char)(((mask1 * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32);

v128_t shuf = decodeShuffleMask(mask0r, mask1r);

Expand Down

0 comments on commit 3dbe427

Please sign in to comment.