nuttx/libs/libc
yinshengkai b87804c2ba libc/string: replace __builtin_ffsl with inline function
In the gcc-riscv compiler, __builtin_ffs will call ffs, and calling __builtin_ffs in ffs will cause recursion

Change ffs to an inline function, and compile ffs implemented by nuttx by default.
Only call the implementation of nuttx when the compiler cannot provide an ffs implementation.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-04-30 19:47:08 +08:00
..
aio libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
assert toolchain/lto: enable lto flags only on GNU toolchain 2024-02-18 00:47:53 -08:00
audio audio/libsrc: fix build warning 2024-03-26 09:40:42 +08:00
bin
builtin libs/libc: adapt the cmake script from the makefile 2023-11-07 17:39:03 +01:00
ctype Add basic support for locales in order to C++ streams to build and work for simple cases (POSIX / C locale). 2024-04-29 17:34:10 +08:00
dirent
dlfcn
errno
eventfd
fdt CMake:init arm64 CMake qemu-armv8a build 2023-12-27 07:27:17 -08:00
fixedmath
gdbstub support gdbstub use serial. 2023-12-11 08:43:26 -08:00
gpsutils libs/libc: adapt the cmake script from the makefile 2023-11-07 17:39:03 +01:00
grp
hex2bin
inttypes libs/libc/inttypes: add support for imaxdiv 2024-04-23 10:26:48 -03:00
kbin
libgen
locale Add basic support for locales in order to C++ streams to build and work for simple cases (POSIX / C locale). 2024-04-29 17:34:10 +08:00
lzf
machine fix nxstyle 2024-04-16 19:09:12 +08:00
misc fdcheck: update fdcheck impl 2024-04-11 10:45:44 +08:00
modlib riscv/arch_elf.c: Handle PCREL_HI20/LO12_I/S relocations correctly 2023-12-12 17:32:36 -08:00
net
netdb
obstack compiler/tasking: fix compiler warning on tasking 2024-01-31 05:02:56 -08:00
pthread sched/tls_info: Add tl_ prefix to pthread cleanup stack / tos 2023-11-15 08:52:04 -08:00
pwd
queue
regex
sched task/pthread_cancelpt: Move cancel point handling to libc, data to TLS 2023-11-15 08:52:04 -08:00
search hsearch_r: add DELETE action 2024-02-21 13:29:36 -03:00
semaphore sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
signal
spawn libs/libc/spawn: Add minimal implementation for posix_spawnattr_destory. 2023-10-31 13:42:00 +08:00
stdio fdcheck: update fdcheck impl 2024-04-11 10:45:44 +08:00
stdlib libc: add support for reallocarray 2024-04-17 11:36:39 -03:00
stream libc/stream: add file out stream 2023-12-25 16:54:16 -03:00
string libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
symtab libs: fix the problem that the address obtained in thumb mode cannot be executed. 2024-01-04 09:22:57 -08:00
syslog
termios
time libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
tls sched/tls: inline group info in flat mode to improve performance 2024-03-01 17:27:26 +08:00
uio
unistd fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
userfs
uuid libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
wchar
wctype compiler/tasking: fix unreachable code on tasking toolchain 2024-01-30 20:53:00 -08:00
wqueue semaphore/_SEM_XX: Remove the _SEM redirection macros as unnecessary 2023-11-27 04:52:54 -08:00
zoneinfo Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
.gitignore
CMakeLists.txt
Kconfig
libc.csv libc.csv: Fix macro guard for TLS related symbols 2024-04-17 19:45:26 +08:00
libc.h stdio: Implement [clearerr|putc|fflush]_unlocked 2023-10-29 17:09:18 +02:00
Makefile api: add simple hashtable api 2024-02-21 13:29:36 -03:00