From 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 22:22:16 +0100 Subject: Add bin/true and bin/false implementations - Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code. --- lib/libc/strings/ffs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc/strings/ffs.c') diff --git a/lib/libc/strings/ffs.c b/lib/libc/strings/ffs.c index 3b836021..2c49cf4d 100644 --- a/lib/libc/strings/ffs.c +++ b/lib/libc/strings/ffs.c @@ -1,7 +1,8 @@ int ffs(int i) { - if (i == 0) + if (i == 0) { return 0; + } int pos = 1; unsigned int u = (unsigned int)i; @@ -10,5 +11,6 @@ int ffs(int i) u >>= 1; pos++; } + return pos; } -- cgit v1.2.3