nuttx/libs/libc/string
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
..
CMakeLists.txt
Kconfig
lib_explicit_bzero.c
lib_ffs.c libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
lib_ffsl.c libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
lib_ffsll.c libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
lib_fls.c libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
lib_flsl.c libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
lib_flsll.c libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
lib_index.c
lib_isbasedigit.c
lib_memccpy.c
lib_memchr.c
lib_memcmp.c
lib_memcpy.c
lib_memmem.c
lib_memmove.c
lib_mempcpy.c
lib_memrchr.c
lib_memset.c
lib_popcount.c
lib_popcountl.c
lib_popcountll.c
lib_rawmemchr.c
lib_rindex.c
lib_skipspace.c
lib_stpcpy.c
lib_stpncpy.c
lib_strcasecmp.c
lib_strcasestr.c
lib_strcat.c
lib_strchr.c
lib_strchrnul.c
lib_strcmp.c
lib_strcoll.c
lib_strcpy.c
lib_strcspn.c
lib_strdup.c
lib_strerror.c
lib_strerrorr.c
lib_strlcat.c
lib_strlcpy.c
lib_strlen.c
lib_strncasecmp.c
lib_strncat.c
lib_strncmp.c
lib_strncpy.c
lib_strndup.c
lib_strnlen.c
lib_strpbrk.c
lib_strrchr.c
lib_strsep.c
lib_strsignal.c
lib_strspn.c
lib_strstr.c
lib_strtok.c
lib_strtokr.c
lib_strverscmp.c
lib_strxfrm.c
lib_timingsafe_bcmp.c
lib_vikmemcpy.c
Make.defs