Skip to content

Commit 9044e5c

Browse files
committed
Cleanup abs and remove redundant inlines
1 parent 8a620c0 commit 9044e5c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/ccmath/math/basic/abs.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
#pragma once
1010

11-
#include <array>
12-
#include <limits>
1311
#include "ccmath/internal/predef/unlikely.hpp"
1412
#include "ccmath/math/compare/isinf.hpp"
1513
#include "ccmath/math/compare/isnan.hpp"
14+
#include <array>
15+
#include <limits>
1616

1717
namespace ccm
1818
{
@@ -98,7 +98,7 @@ namespace ccm
9898
* @param x Floating-point value.
9999
* @return If successful, returns the absolute value of arg (|arg|). The value returned is exact and does not depend on any rounding modes.
100100
*/
101-
inline constexpr float fabsf(float num) noexcept
101+
constexpr float fabsf(float num) noexcept
102102
{
103103
return abs<float>(num);
104104
}
@@ -108,7 +108,7 @@ namespace ccm
108108
* @param x Floating-point value.
109109
* @return If successful, returns the absolute value of arg (|arg|). The value returned is exact and does not depend on any rounding modes.
110110
*/
111-
inline constexpr long double fabsl(long double num) noexcept
111+
constexpr long double fabsl(long double num) noexcept
112112
{
113113
return abs<long double>(num);
114114
}
@@ -118,7 +118,7 @@ namespace ccm
118118
* @param x Integer value.
119119
* @return If successful, returns the absolute value of arg (|arg|). The value returned is exact and does not depend on any rounding modes.
120120
*/
121-
inline constexpr long labs(long num) noexcept
121+
constexpr long labs(long num) noexcept
122122
{
123123
return abs<long>(num);
124124
}
@@ -128,7 +128,7 @@ namespace ccm
128128
* @param x Integer value.
129129
* @return If successful, returns the absolute value of arg (|arg|). The value returned is exact and does not depend on any rounding modes.
130130
*/
131-
inline constexpr long long llabs(long long num) noexcept
131+
constexpr long long llabs(long long num) noexcept
132132
{
133133
return abs<long long>(num);
134134
}

0 commit comments

Comments
 (0)