1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

AK: Avoid else after return in files commonly included by the Kernel

This commit is contained in:
Andrew Kaster 2021-11-06 11:24:53 -06:00 committed by Andreas Kling
parent 07f4e91b94
commit e982253c33
3 changed files with 28 additions and 38 deletions

View file

@ -141,9 +141,8 @@ constexpr bool is_constant_evaluated()
constexpr type abs(type num) \
{ \
if (is_constant_evaluated()) \
return num < zero ? -num : num; \
else \
return __builtin_##intrinsic(num); \
return num < (zero) ? -num : num; \
return __builtin_##intrinsic(num); \
}
__DEFINE_GENERIC_ABS(int, 0, abs);