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
commit 8f332ac6a3
Notes: sideshowbarker 2024-07-18 01:43:21 +09:00

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;