Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Dec 8, 2024
1 parent f259338 commit 57a4fb1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions include/bx/inline/math.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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) );
Expand Down
8 changes: 0 additions & 8 deletions include/bx/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57a4fb1

Please sign in to comment.