Browse Source

remove now unused UA_ALIGNED_MEMORY_ACCESS

Julius Pfrommer 9 years ago
parent
commit
c86fe11546
3 changed files with 3 additions and 10 deletions
  1. 2 2
      deps/libc_string.c
  2. 0 2
      doc/building.rst
  3. 1 6
      include/ua_config.h.in

+ 2 - 2
deps/libc_string.c

@@ -3,9 +3,9 @@
  * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  */
 
-#include <stddef.h>
+#include "ua_config.h"
 
-void *memcpy(void * UA_RESTRICT dest, const void *UA_RESTRICT src, size_t n) {
+void *memcpy(void *UA_RESTRICT dest, const void *UA_RESTRICT src, size_t n) {
 	unsigned char *d = dest;
 	const unsigned char *s = src;
 	while(n--)

+ 0 - 2
doc/building.rst

@@ -109,8 +109,6 @@ in ua_config.h. Usually there is no need to adjust them.
    Big-endian or mixed endian platform
 **UA_MIXED_ENDIAN**
    Mixed-endian platform (e.g., ARM7TDMI)
-**UA_ALIGNED_MEMORY_ACCESS**
-   Platform with aligned memory access only (some ARM processors, e.g. Cortex M3/M4 ARM7TDMI etc.)
 
 UA_BUILD_* group
 ~~~~~~~~~~~~~

+ 1 - 6
include/ua_config.h.in

@@ -70,11 +70,6 @@
 # define UA_NON_LITTLEENDIAN_ARCHITECTURE
 #endif
 
-/* Aligned Memory Access */
-#if defined(__arm__) && !defined(__ARM_FEATURE_UNALIGNED)
-# define UA_ALIGNED_MEMORY_ACCESS
-#endif
-
 /* Inline Functions */
 #ifdef _MSC_VER
 # define UA_INLINE __inline
@@ -105,7 +100,7 @@
 #endif
 
 #include <stddef.h>
-#ifdef UA_EMBEDDED_LIBC
+#ifdef UA_ENABLE_EMBEDDED_LIBC
   void *memcpy(void *UA_RESTRICT dest, const void *UA_RESTRICT src, size_t n);
   void *memset(void *dest, int c, size_t n);
   size_t strlen(const char *s);