From fde74453a62a1ce4b5efaac0ec1835b9f5731e25 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 1 Mar 2023 11:35:39 -0800 Subject: Use macros for the likely/unlikely attributes The syntax parser for GCC 8 (and earlier?) fails when these attributes are in certain places. --- core/mastering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/mastering.cpp') diff --git a/core/mastering.cpp b/core/mastering.cpp index cff162da..97a4008e 100644 --- a/core/mastering.cpp +++ b/core/mastering.cpp @@ -295,7 +295,7 @@ void SignalDelay(Compressor *Comp, const uint SamplesToDo, FloatBufferLine *OutB float *delaybuf{al::assume_aligned<16>(Comp->mDelay[c].data())}; auto inout_end = inout + SamplesToDo; - if(SamplesToDo >= lookAhead) [[likely]] + if(SamplesToDo >= lookAhead) LIKELY { auto delay_end = std::rotate(inout, inout_end - lookAhead, inout_end); std::swap_ranges(inout, delay_end, delaybuf); -- cgit v1.2.3