nuttx-update/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 cmake: add needed file to cmake script for build sim 2023-11-07 17:39:03 +01:00
Kconfig Kconfig: Change some "default y" to "default !DEFAULT_SMALL" 2023-07-16 14:39:20 -03:00
lib_explicit_bzero.c libs: libc: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_isbasedigit.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_memccpy.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_memchr.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_memcmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_memcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_memmem.c libs/libc/string: fix memmem() boundary case when needle is at end of haystack 2024-03-11 22:06:19 +08:00
lib_memmove.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_mempcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memrchr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memset.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_popcount.c libc: Implement popcount/popcountl/popcountll 2020-09-21 07:37:04 -07:00
lib_popcountl.c libc: Implement popcount/popcountl/popcountll 2020-09-21 07:37:04 -07:00
lib_popcountll.c libc: Implement popcount/popcountl/popcountll 2020-09-21 07:37:04 -07:00
lib_rawmemchr.c libc/lib_rawmemchr.c:Add rawmemchr methon. 2023-02-24 04:06:04 +08:00
lib_rindex.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_skipspace.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_stpcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_stpncpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strcasecmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcasestr.c compiler/tasking: fix unreachable code on tasking toolchain 2024-01-30 20:53:00 -08:00
lib_strcat.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strchr.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strchrnul.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcoll.c This commit moves all of the libraries under a common directory called libs/. This most certainly break libcxx and uClibc++ for now. 2018-05-29 13:21:26 -06:00
lib_strcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcspn.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_strdup.c change strcpy to strlcpy 2023-02-24 12:15:40 +08:00
lib_strerror.c libc: Print error code for unknown errors in strerror/gai_strerror 2023-04-22 01:46:39 +08:00
lib_strerrorr.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_strlcat.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strlcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strlen.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncasecmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncat.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strndup.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strnlen.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strpbrk.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strrchr.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strsep.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strsignal.c ltp: fix review questions 2023-08-01 09:35:36 -07:00
lib_strspn.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_strstr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strtok.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strtokr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strverscmp.c libc/versionsort: support versionsort and strverscmp 2023-01-15 11:24:40 +08:00
lib_strxfrm.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_timingsafe_bcmp.c libs/libc/string: remove redundant parenthesis 2023-05-19 02:40:38 +08:00
lib_vikmemcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
Make.defs Revert "libc/lib_bzero:Add bzero prototype." 2023-11-21 07:56:52 -08:00