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

LibC: Add labs()

We defined it in `stdlib.h` but forgot to implement it.
This commit is contained in:
Jelle Raaijmakers 2021-10-30 00:51:36 +02:00 committed by Andreas Kling
parent 3ce4d0f89a
commit 8f332ac6a3

View file

@ -725,6 +725,11 @@ int abs(int i)
return i < 0 ? -i : i;
}
long int labs(long int i)
{
return i < 0 ? -i : i;
}
long long int llabs(long long int i)
{
return i < 0 ? -i : i;