summaryrefslogtreecommitdiff
path: root/nuttx/lib/Kconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-20 20:59:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-20 20:59:44 +0000
commitb73107ca1d89a14d9ba1e77c4fafb524f406ac66 (patch)
treea5e76cf8f8b5ed8fb9114c4f92bacc396ce2a21e /nuttx/lib/Kconfig
parentdfeb1d80da3e8cfc5e4a7b978db995401eb97114 (diff)
downloadpx4-nuttx-b73107ca1d89a14d9ba1e77c4fafb524f406ac66.tar.gz
px4-nuttx-b73107ca1d89a14d9ba1e77c4fafb524f406ac66.tar.bz2
px4-nuttx-b73107ca1d89a14d9ba1e77c4fafb524f406ac66.zip
Add Daniel Vik's optimized memcpy as a configuration option
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5240 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/Kconfig')
-rw-r--r--nuttx/lib/Kconfig61
1 files changed, 61 insertions, 0 deletions
diff --git a/nuttx/lib/Kconfig b/nuttx/lib/Kconfig
index 69a55d09c..b3f743db2 100644
--- a/nuttx/lib/Kconfig
+++ b/nuttx/lib/Kconfig
@@ -155,40 +155,101 @@ if ARCH_OPTIMIZED_FUNCTIONS
config ARCH_MEMCPY
bool "memcpy"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of memcpy().
+
+config MEMCPY_VIK
+ bool "Vik memcpy"
+ default n
+ depends on !ARCH_MEMCPY
+ ---help---
+ Select this option to use the optimized memcpy() function by Daniel Vik.
+ See licensing information in the top-level COPYING file.
+
+if MEMCPY_VIK
+config MEMCPY_PRE_INC_PTRS
+ bool "Pre-increment pointers"
+ default n
+ ---help---
+ Use pre-increment of pointers. Default is post increment of pointers.
+
+config MEMCPY_INDEXED_COPY
+ bool "Array indexing"
+ default y
+ ---help---
+ Copying data using array indexing. Using this option, disables the
+ MEMCPY_PRE_INC_PTRS option.
+
+config MEMCPY_64BIT
+ bool "64-bit memcpy"
+ default n
+ ---help---
+ Compiles memcpy for 64 bit architectures
+
+endif
config ARCH_MEMCMP
bool "memcmp"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of memcmp().
config ARCH_MEMMOVE
bool "memmove"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of memmove().
config ARCH_MEMSET
bool "memset"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of memset().
config ARCH_STRCMP
bool "strcmp"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of strcmp().
config ARCH_STRCPY
bool "strcpy"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of strcpy().
config ARCH_STRNCPY
bool "strncpy"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of strncpy().
config ARCH_STRLEN
bool "strlen"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of strlen().
config ARCH_STRNLEN
bool "strlen"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of strnlen().
config ARCH_BZERO
bool "bzero"
default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of bzero().
+
endif