summaryrefslogtreecommitdiffstats
path: root/thirdparty/basis_universal/encoder/cppspmd_math.h
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-14 14:09:57 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-14 14:09:57 -0500
commit56ed76a372b7eeabf7c52c86684b8084ddb6dbb5 (patch)
treecccfb27c77cce8207913c1b453afab3e34f0dcfd /thirdparty/basis_universal/encoder/cppspmd_math.h
parenta1e768c50810e67cd5bdbb8f3f6a661f26fdb03b (diff)
parent200ed0971a04b3a83b30a782416f8ac95aee5a1f (diff)
downloadredot-engine-56ed76a372b7eeabf7c52c86684b8084ddb6dbb5.tar.gz
Merge pull request #97582 from BlueCube3310/basisu-hdr
BasisU: Update to 1.50.0 and add HDR support
Diffstat (limited to 'thirdparty/basis_universal/encoder/cppspmd_math.h')
-rw-r--r--thirdparty/basis_universal/encoder/cppspmd_math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/basis_universal/encoder/cppspmd_math.h b/thirdparty/basis_universal/encoder/cppspmd_math.h
index e7b3202b8e..3032df865f 100644
--- a/thirdparty/basis_universal/encoder/cppspmd_math.h
+++ b/thirdparty/basis_universal/encoder/cppspmd_math.h
@@ -1,6 +1,6 @@
// Do not include this header directly.
//
-// Copyright 2020-2021 Binomial LLC
+// Copyright 2020-2024 Binomial LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -646,7 +646,7 @@ CPPSPMD_FORCE_INLINE vint spmd_kernel::count_set_bits(vint x)
{
vint v = x - (VUINT_SHIFT_RIGHT(x, 1) & 0x55555555);
vint v1 = (v & 0x33333333) + (VUINT_SHIFT_RIGHT(v, 2) & 0x33333333);
- return VUINT_SHIFT_RIGHT(((v1 + VUINT_SHIFT_RIGHT(v1, 4) & 0xF0F0F0F) * 0x1010101), 24);
+ return VUINT_SHIFT_RIGHT(((v1 + (VUINT_SHIFT_RIGHT(v1, 4) & 0xF0F0F0F)) * 0x1010101), 24);
}
CPPSPMD_FORCE_INLINE vint cmple_epu16(const vint &a, const vint &b)