mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +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;
|
return i < 0 ? -i : i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long long int llabs(long long int i)
|
||||||
|
{
|
||||||
|
return i < 0 ? -i : i;
|
||||||
|
}
|
||||||
|
|
||||||
long int random()
|
long int random()
|
||||||
{
|
{
|
||||||
return rand();
|
return rand();
|
||||||
|
|
|
@ -49,6 +49,7 @@ char* ptsname(int fd);
|
||||||
int ptsname_r(int fd, char* buffer, size_t);
|
int ptsname_r(int fd, char* buffer, size_t);
|
||||||
int abs(int);
|
int abs(int);
|
||||||
long labs(long);
|
long labs(long);
|
||||||
|
long long int llabs(long long int);
|
||||||
double atof(const char*);
|
double atof(const char*);
|
||||||
int system(const char* command);
|
int system(const char* command);
|
||||||
char* mktemp(char*);
|
char* mktemp(char*);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue