mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-30 18:30:51 +00:00
FUCKCLANG
This commit is contained in:
@@ -590,7 +590,6 @@ static TexelWeightParams DecodeBlockInfo(InputBitStream& strm) {
|
||||
// Replicates low num_bits such that [(to_bit - 1):(to_bit - 1 - from_bit)]
|
||||
// is the same as [(num_bits - 1):0] and repeats all the way down.
|
||||
[[nodiscard]] constexpr u32 Replicate(u32 v, u32 num_bits, u32 to_bit) {
|
||||
auto const mask = u32(1 << num_bits) - 1;
|
||||
auto val = v;
|
||||
for (; num_bits < to_bit; num_bits <<= 1)
|
||||
val |= val << u32(num_bits);
|
||||
|
||||
Reference in New Issue
Block a user