1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Fix linkage error on debug build with clang-13

Debug build with clang-13 fails with "undefined references" to the
static const members in spu_channel class. This patch replaces the const
definitions with constexpr constants.
This commit is contained in:
Hyogi Sim 2022-01-31 07:50:20 -05:00 committed by Ivan
parent 91673f8fdc
commit 3a804674c9

View File

@ -172,10 +172,10 @@ struct spu_channel
atomic_t<u64> data;
public:
static const u32 off_wait = 32;
static const u32 off_count = 63;
static const u64 bit_wait = 1ull << off_wait;
static const u64 bit_count = 1ull << off_count;
static constexpr u32 off_wait = 32;
static constexpr u32 off_count = 63;
static constexpr u64 bit_wait = 1ull << off_wait;
static constexpr u64 bit_count = 1ull << off_count;
// Returns true on success
bool try_push(u32 value)