POSIX: add ffsl and ffsll from musl sources.

appeared in issue 8:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/ffs.html
Change-Id: Ic382498c3e2d6138aedbeb88578882457ee875ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9836
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2025-11-11 16:50:29 +00:00
committed by waddlesplash
parent 11d8ab2a71
commit b739532218
7 changed files with 22 additions and 14 deletions
+3 -1
View File
@@ -14,7 +14,9 @@
extern "C" {
#endif
static __inline__ int ffs(int i) { return __builtin_ffs(i); }
extern int ffs(int i);
extern int ffsl(long i);
extern int ffsll(long long i);
extern int strcasecmp(const char *string1, const char *string2);
extern int strncasecmp(const char *string1, const char *string2,