mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
AK: Use capitalized literal suffixes for AK::abs() overloads
Using `l` for long double causes a clang-tidy warning, so use all caps suffixes for all of the AK::abs() overloads for consistency. Also, avoid leaking the internal __DEFINE_GENERIC_ABS macro.
This commit is contained in:
parent
e982253c33
commit
10d0cac73c
1 changed files with 6 additions and 4 deletions
|
@ -146,14 +146,16 @@ constexpr bool is_constant_evaluated()
|
|||
}
|
||||
|
||||
__DEFINE_GENERIC_ABS(int, 0, abs);
|
||||
__DEFINE_GENERIC_ABS(long, 0l, labs);
|
||||
__DEFINE_GENERIC_ABS(long long, 0ll, llabs);
|
||||
__DEFINE_GENERIC_ABS(long, 0L, labs);
|
||||
__DEFINE_GENERIC_ABS(long long, 0LL, llabs);
|
||||
#ifndef KERNEL
|
||||
__DEFINE_GENERIC_ABS(float, 0.0f, fabsf);
|
||||
__DEFINE_GENERIC_ABS(float, 0.0F, fabsf);
|
||||
__DEFINE_GENERIC_ABS(double, 0.0, fabs);
|
||||
__DEFINE_GENERIC_ABS(long double, 0.0l, fabsl);
|
||||
__DEFINE_GENERIC_ABS(long double, 0.0L, fabsl);
|
||||
#endif
|
||||
|
||||
#undef __DEFINE_GENERIC_ABS
|
||||
|
||||
}
|
||||
|
||||
using AK::array_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue