diff options
author | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-09-28 12:05:45 +0200 |
---|---|---|
committer | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-10-12 18:02:44 +0200 |
commit | 200ed0971a04b3a83b30a782416f8ac95aee5a1f (patch) | |
tree | b1988c4a8b6aa9e29ab35165fe4339f594d6ce70 /thirdparty/basis_universal/encoder/cppspmd_math.h | |
parent | 92e51fca7247c932f95a1662aefc28aca96e8de6 (diff) | |
download | redot-engine-200ed0971a04b3a83b30a782416f8ac95aee5a1f.tar.gz |
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.h | 4 |
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) |