From de5d363fe8640d58992927c7f6e05093d9b0a778 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 4 Apr 2024 09:22:29 -0400 Subject: [PATCH] unsigned div --- CMakeLists.txt | 2 +- include/blt/math/fixed_point.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0fae0c..b35e62f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.5) include(cmake/color.cmake) -set(BLT_VERSION 0.16.1) +set(BLT_VERSION 0.16.2) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/math/fixed_point.h b/include/blt/math/fixed_point.h index 5961f1b..e409d0c 100644 --- a/include/blt/math/fixed_point.h +++ b/include/blt/math/fixed_point.h @@ -62,15 +62,15 @@ namespace blt BLT_ATTRIB_NO_INLINE friend fp64 operator*(fp64 left, fp64 right) { - auto lhs = static_cast<__int128>(left.v); - auto rhs = static_cast<__int128>(right.v); + auto lhs = static_cast(left.v); + auto rhs = static_cast(right.v); return fp64(static_cast((lhs * rhs) >> 32)); } BLT_ATTRIB_NO_INLINE friend fp64 operator/(fp64 left, fp64 right) { - auto lhs = static_cast<__int128>(left.v); - auto rhs = static_cast<__int128>(right.v); + auto lhs = static_cast(left.v); + auto rhs = static_cast(right.v); return fp64(static_cast((lhs / rhs) << 32)); }