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/converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/converter.cpp') diff --git a/core/converter.cpp b/core/converter.cpp index c69bada7..a5141448 100644 --- a/core/converter.cpp +++ b/core/converter.cpp @@ -140,7 +140,7 @@ void Multi2Mono(uint chanmask, const size_t step, const float scale, float *REST std::fill_n(dst, frames, 0.0f); for(size_t c{0};chanmask;++c) { - if((chanmask&1)) [[likely]] + if((chanmask&1)) LIKELY { for(size_t i{0u};i < frames;i++) dst[i] += LoadSample(ssrc[i*step + c]); -- cgit v1.2.3