nuttx/libs/libc/machine/arm/armv8-m/Kconfig
zhangyuan21 650f17169a libc: add armv7-a armv7-m armv8-m libc function
Porting memory and string optimize functions from newlib and bionic

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-10 11:31:26 +08:00

76 lines
2.0 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if ARCH_ARMV8M
config ARMV8M_MEMCHR
bool "Enable optimized memchr() for ARMv8-M"
default n
select LIBC_ARCH_MEMCHR
depends on ARCH_TOOLCHAIN_GNU
---help---
Enable optimized ARMv8-M specific memchr() library function
config ARMV8M_MEMCPY
bool "Enable optimized memcpy() for ARMv8-M"
default n
select LIBC_ARCH_MEMCPY
depends on ARCH_TOOLCHAIN_GNU
---help---
Enable optimized ARMv8-M specific memcpy() library function
config ARMV8M_MEMSET
bool "Enable optimized memset() for ARMv8-M"
default n
select LIBC_ARCH_MEMSET
depends on ARCH_TOOLCHAIN_GNU
---help---
Enable optimized ARMv8-M specific memset() library function
config ARMV8M_MEMMOVE
bool "Enable optimized memmove() for ARMv8-M"
default n
select LIBC_ARCH_MEMMOVE
depends on ARCH_TOOLCHAIN_GNU
---help---
Enable optimized ARMv8-M specific memmove() library function
config ARMV8M_STRCMP
bool "Enable optimized strcmp() for ARMv8-M"
default n
select LIBC_ARCH_STRCMP
depends on ARCH_TOOLCHAIN_GNU
---help---
Enable optimized ARMv8-M specific strcmp() library function
config ARMV8M_STRLEN
bool "Enable optimized strlen() for ARMv8-M"
default n
select LIBC_ARCH_STRLEN
depends on ARCH_TOOLCHAIN_GNU
---help---
Enable optimized ARMv8-M specific strlen() library function
config ARMV8M_LIBM
bool "Architecture specific optimizations"
default n
select LIBM_ARCH_CEIL if ARCH_DPFPU
select LIBM_ARCH_FLOOR if ARCH_DPFPU
select LIBM_ARCH_NEARBYINT if ARCH_DPFPU
select LIBM_ARCH_RINT if ARCH_DPFPU
select LIBM_ARCH_ROUND if ARCH_DPFPU
select LIBM_ARCH_TRUNC if ARCH_DPFPU
select LIBM_ARCH_CEILF if ARCH_FPU
select LIBM_ARCH_FLOORF if ARCH_FPU
select LIBM_ARCH_NEARBYINTF if ARCH_FPU
select LIBM_ARCH_RINTF if ARCH_FPU
select LIBM_ARCH_ROUNDF if ARCH_FPU
select LIBM_ARCH_TRUNCF if ARCH_FPU
depends on LIBM
---help---
Enable ARMv8 specific floating point optimizations.
endif