mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-02 18:29:41 +00:00
Fix Linux/GCC compilation issue.
This commit is contained in:
parent
e63ace34e9
commit
6e364ad774
@ -44,7 +44,7 @@ inline int EightBit::countBits(uint8_t value) noexcept {
|
|||||||
|
|
||||||
inline bool EightBit::oddParity(const uint8_t value) noexcept {
|
inline bool EightBit::oddParity(const uint8_t value) noexcept {
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
return __builtin_parity(value)
|
return __builtin_parity(value);
|
||||||
#else
|
#else
|
||||||
return countBits(value) % 2;
|
return countBits(value) % 2;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user