mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-18 19:55:00 -04:00
MSVC: Use Q_LIKELY and Q_UNLIKELY instead of gcc-specific extensions
This commit is contained in:
@@ -56,8 +56,8 @@ typedef uint16_t fx_ch_t; // FX-channel (0 to MAX_EFFECT_CHANNEL)
|
||||
typedef uint32_t jo_id_t; // (unique) ID of a journalling object
|
||||
|
||||
// use for improved branch prediction
|
||||
#define likely(x) __builtin_expect((x),1)
|
||||
#define unlikely(x) __builtin_expect((x),0)
|
||||
#define likely(x) Q_LIKELY(x)
|
||||
#define unlikely(x) Q_UNLIKELY(x)
|
||||
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user