From df6d61dd40b602af55f903564358b083bb8b37e4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 5 Dec 2022 14:51:03 -0800 Subject: Use standard likely/unlikely attributes when available --- core/hrtf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/hrtf.cpp') diff --git a/core/hrtf.cpp b/core/hrtf.cpp index dedd74a3..383d4340 100644 --- a/core/hrtf.cpp +++ b/core/hrtf.cpp @@ -405,7 +405,7 @@ std::unique_ptr CreateHrtfStore(uint rate, ushort irSize, auto delays_ = reinterpret_cast(base + offset); offset += sizeof(delays_[0])*irCount; - if(unlikely(offset != total)) + if(offset != total) throw std::runtime_error{"HrtfStore allocation size mismatch"}; /* Copy input data to storage. */ -- cgit v1.2.3