diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2023-03-01 11:35:39 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2023-03-01 11:35:39 -0800 |
commit | fde74453a62a1ce4b5efaac0ec1835b9f5731e25 (patch) | |
tree | ed74db646800b78ca8651bb5291453927f48cd93 /core/device.h | |
parent | ec9c421d312d6df701631877f6ce6256355101dc (diff) |
Use macros for the likely/unlikely attributes
The syntax parser for GCC 8 (and earlier?) fails when these attributes are in
certain places.
Diffstat (limited to 'core/device.h')
-rw-r--r-- | core/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/device.h b/core/device.h index 32cf04c3..9aaf7adb 100644 --- a/core/device.h +++ b/core/device.h @@ -310,7 +310,7 @@ struct DeviceBase { void ProcessBs2b(const size_t SamplesToDo); inline void postProcess(const size_t SamplesToDo) - { if(PostProcess) [[likely]] (this->*PostProcess)(SamplesToDo); } + { if(PostProcess) LIKELY (this->*PostProcess)(SamplesToDo); } void renderSamples(const al::span<float*> outBuffers, const uint numSamples); void renderSamples(void *outBuffer, const uint numSamples, const size_t frameStep); |