diff options
author | Chris Robinson <[email protected]> | 2018-01-07 22:20:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-07 22:20:08 -0800 |
commit | d547f52d8f4d584e9f6c3b56b8dd59f27e3dfe08 (patch) | |
tree | 4780f360faf2353240328990a8ad9a73e7f3f427 /Alc/effects | |
parent | 56e9cb69d3aba60016701c6478b3f08c08aa3171 (diff) |
Move the UNEXPECTED macro to the main header and rename it
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/reverb.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 52e3ec09..1edd650f 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -54,11 +54,6 @@ ALboolean EmulateEAXReverb = AL_FALSE; */ #define FADE_SAMPLES 128 -#ifdef __GNUC__ -#define UNEXPECTED(x) __builtin_expect((bool)(x), 0) -#else -#define UNEXPECTED(x) (x) -#endif static RowMixerFunc MixRowSamples = MixRow_C; @@ -1868,7 +1863,7 @@ static ALvoid ALreverbState_process(ALreverbState *State, ALsizei SamplesToDo, c /* Process the samples for reverb. */ fade = ReverbProc(State, todo, fade, afmt, early, late); - if(UNEXPECTED(fadeCount < FADE_SAMPLES) && (fadeCount += todo) >= FADE_SAMPLES) + if(UNLIKELY(fadeCount < FADE_SAMPLES) && (fadeCount += todo) >= FADE_SAMPLES) { /* Update the cross-fading delay line taps. */ fadeCount = FADE_SAMPLES; |