Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MSVC: Use Q_LIKELY and Q_UNLIKELY instead of gcc-specific extensions
  • Loading branch information
lukas-w committed Oct 16, 2017
commit f123b82f27a5a1fc83e698dc4afa01fa925bcb9c
4 changes: 2 additions & 2 deletions include/lmms_basics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down