mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
libs/libc: Fix Kconfig issue for memcpy and memset
Fix an issue on ARMv8-R where NEON is not supported.
When NEON is disabled, the assembly-optimized implementations
of memset and memcpy should not be used.
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
parent
190daef2bf
commit
f82f71d180
1 changed files with 3 additions and 2 deletions
|
|
@ -8,9 +8,9 @@ config ARMV8R_STRING_FUNCTION
|
|||
default n
|
||||
depends on ARCH_TOOLCHAIN_GNU
|
||||
select ARMV8R_MEMCHR
|
||||
select ARMV8R_MEMCPY
|
||||
select ARMV8R_MEMCPY if ARM_NEON
|
||||
select ARMV8R_MEMMOVE
|
||||
select ARMV8R_MEMSET
|
||||
select ARMV8R_MEMSET if ARM_NEON
|
||||
select ARMV8R_STRCMP
|
||||
select ARMV8R_STRLEN
|
||||
|
||||
|
|
@ -19,6 +19,7 @@ config ARMV8R_MEMCHR
|
|||
default n
|
||||
select LIBC_ARCH_MEMCHR
|
||||
depends on ARCH_TOOLCHAIN_GNU
|
||||
depends on ARM_NEON
|
||||
---help---
|
||||
Enable optimized ARMv8-R specific memchr() library function
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue