You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed compilation for STM32 (no constexpr abs...)
Added autotests for opposite
Fixed auto tests for STM32?
Changed compilation guards for autotests. More tests
Fixed compilation of autotests
Fixed compilation for stm32
Fix of auto again
// the point of this block is to ascertain that addtion does not overflow, internally, where the internal_type of the operands is too small to hold the result
49
63
constexprauto large = UFix<32,0>(1LL << 31, true);
@@ -58,7 +72,7 @@ namespace FixMathPrivate {
58
72
static_assert(b + a - b == a, "test fail");
59
73
static_assert(b + a + (-b) == a, "test fail"); // same with unary minus
60
74
static_assert(-(-a) == a, "test fail");
61
-
#if __cplusplus >= 202002L
75
+
#if(__cplusplus >= 202002L)
62
76
// These here involve shifts of negative numbers, which used to be "implementation defined" before C++-20.
63
77
// It doesn't cause a real-world problem, but the compiler won't accept it in a constexpr
64
78
static_assert(UFix<43,9>(0) - b - a == -(a+b), "test fail");
0 commit comments