From e6628e153b9636efac8b1f5d5a2f8046cba44da6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 9 Oct 2023 10:28:38 +0200 Subject: a --- compat/assert.hpp | 4 ++-- compat/defs.hpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compat/assert.hpp b/compat/assert.hpp index d4c6d49d..a40e23dd 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -92,8 +92,8 @@ { \ if (a != b) [[unlikely]] \ { \ - DBG_nospace << "assertion failed: " \ - << #__VA_ARGS__ << " in " \ + DBG_nospace << "assertion failed: fm_assert_equal(" \ + << #__VA_ARGS__ << ") in " \ << __FILE__ << ":" << __LINE__; \ DBG_nospace << " expected: " << a; \ DBG_nospace << " actual: " << b; \ diff --git a/compat/defs.hpp b/compat/defs.hpp index 6b80f6ea..0a202039 100644 --- a/compat/defs.hpp +++ b/compat/defs.hpp @@ -70,6 +70,7 @@ #ifndef __SIZEOF_POINTER__ #error "missing __SIZEOF_POINTER__" #endif +#define fm_UNROLL_2 _Pragma("GCC unroll 2") #define fm_UNROLL_4 _Pragma("GCC unroll 4") #define fm_UNROLL_8 _Pragma("GCC unroll 8") #if __SIZEOF_POINTER__ >= 8 -- cgit v1.2.3