mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Implemented llabs() in stdlib.h/cpp.
This commit is contained in:
parent
4ce17721e3
commit
18a641f3f8
Notes:
sideshowbarker
2024-07-18 18:56:51 +09:00
Author: https://github.com/holdengreen
Commit: 18a641f3f8
Pull-request: https://github.com/SerenityOS/serenity/pull/6717
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/linusg
2 changed files with 6 additions and 0 deletions
|
@ -713,6 +713,11 @@ int abs(int i)
|
|||
return i < 0 ? -i : i;
|
||||
}
|
||||
|
||||
long long int llabs(long long int i)
|
||||
{
|
||||
return i < 0 ? -i : i;
|
||||
}
|
||||
|
||||
long int random()
|
||||
{
|
||||
return rand();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue