MSVC: Use Q_LIKELY and Q_UNLIKELY instead of gcc-specific extensions

This commit is contained in:
Lukas W
2017-10-16 11:18:11 +02:00
parent 5d4bba9c3c
commit f123b82f27

View File

@@ -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>