mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibC: Add labs()
We defined it in `stdlib.h` but forgot to implement it.
This commit is contained in:
parent
3ce4d0f89a
commit
8f332ac6a3
Notes:
sideshowbarker
2024-07-18 01:43:21 +09:00
Author: https://github.com/gmta
Commit: 8f332ac6a3
Pull-request: https://github.com/SerenityOS/serenity/pull/10696
Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 5 additions and 0 deletions
|
@ -725,6 +725,11 @@ int abs(int i)
|
||||||
return i < 0 ? -i : 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)
|
long long int llabs(long long int i)
|
||||||
{
|
{
|
||||||
return i < 0 ? -i : i;
|
return i < 0 ? -i : i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue