perf(hex8): elide exact zero paired cross products

This commit is contained in:
KOKO\Mimi
2026-10-14 16:48:20 +09:00
parent 8c7c41729e
commit dec6eb3199
3 changed files with 89 additions and 1 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
#include "../math/high_low_arithmetic.h"
#include "hex8_geometry.h"
#include "hex8_pair_arithmetic.h"
namespace fesa {
namespace {
@@ -18,7 +19,7 @@ HighLow operator-(HighLow a, HighLow b) {
return math_internal::Subtract(a, b);
}
HighLow operator*(HighLow a, HighLow b) {
return math_internal::Multiply(a, b);
return hex8_internal::MultiplyPair(a, b);
}
HighLow operator/(HighLow a, HighLow b) {
return math_internal::Divide(a, b);