From 57a4fb1246428e81c8d4e1361993d615353c17aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sat, 7 Dec 2024 21:18:08 -0800 Subject: [PATCH] Cleanup. --- include/bx/inline/math.inl | 10 ---------- include/bx/math.h | 8 -------- 2 files changed, 18 deletions(-) diff --git a/include/bx/inline/math.inl b/include/bx/inline/math.inl index 8775849..5fc99f3 100644 --- a/include/bx/inline/math.inl +++ b/include/bx/inline/math.inl @@ -213,16 +213,6 @@ namespace bx return mul(_a, rcpSafe(_b) ); } - inline BX_CONSTEXPR_FUNC float ceilDiv(float _a, float _b) - { - return div(_a + _b - 1, _b); - } - - inline BX_CONSTEXPR_FUNC float ceilDivSafe(float _a, float _b) - { - return divSafe(_a + _b - 1, _b); - } - inline BX_CONSTEXPR_FUNC float mod(float _a, float _b) { return _a - _b * floor(div(_a, _b) ); diff --git a/include/bx/math.h b/include/bx/math.h index 4bef4ea..ad7a24c 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -372,14 +372,6 @@ namespace bx /// BX_CONSTEXPR_FUNC float divSafe(float _a, float _b); - /// Returns result of division (_a / _b), and rounds upwards. - /// - BX_CONSTEXPR_FUNC float ceilDiv(float _a, float _b); - - /// Returns result of division (_a / _b), and rounds upwards. Avoids divide by zero. - /// - BX_CONSTEXPR_FUNC float ceilDivSafe(float _a, float _b); - /// Returns the floating-point remainder of the division operation _a/_b. /// BX_CONSTEXPR_FUNC float mod(float _a, float _b);