summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-09 10:28:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-09 10:28:38 +0200
commite6628e153b9636efac8b1f5d5a2f8046cba44da6 (patch)
tree03ee22cfbeb374b262e912a6802d40ab6ca9cf15
parentdd00820933be56fbe3ef2b296a5b59b7f78316ca (diff)
a
-rw-r--r--compat/assert.hpp4
-rw-r--r--compat/defs.hpp1
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