You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/04/02 16:12:38 UTC

[incubator-nuttx] 03/04: libs: libc: lib_vikmemcpy.c: Mixed case identifier fix

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d3313eeae96f925e447fc3c43d2a607ba120f283
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Fri Apr 2 08:57:44 2021 +0200

    libs: libc: lib_vikmemcpy.c: Mixed case identifier fix
    
    fix Mixed case identifier reported by nxstyle
    
    Signed-off-by: Alin Jerpelea <al...@sony.com>
---
 libs/libc/string/lib_vikmemcpy.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/libs/libc/string/lib_vikmemcpy.c b/libs/libc/string/lib_vikmemcpy.c
index 94a51bd..3e93b17 100644
--- a/libs/libc/string/lib_vikmemcpy.c
+++ b/libs/libc/string/lib_vikmemcpy.c
@@ -203,8 +203,8 @@
 
 #define COPY_NO_SHIFT()                                           \
 {                                                                 \
-  UIntN* dstN = (UIntN*)(dst8 PRE_LOOP_ADJUST);                   \
-  UIntN* srcN = (UIntN*)(src8 PRE_LOOP_ADJUST);                   \
+  uintn* dstN = (uintn*)(dst8 PRE_LOOP_ADJUST);                   \
+  uintn* srcN = (uintn*)(src8 PRE_LOOP_ADJUST);                   \
   size_t length = count / TYPE_WIDTH;                             \
                                                                   \
   while (length & 7)                                              \
@@ -240,13 +240,13 @@
 
 #define COPY_SHIFT(shift)                                         \
 {                                                                 \
-  UIntN* dstN  = (UIntN*)((((uintptr_t)dst8) PRE_LOOP_ADJUST) &   \
+  uintn* dstN  = (uintn*)((((uintptr_t)dst8) PRE_LOOP_ADJUST) &   \
                            ~(TYPE_WIDTH - 1));                    \
-  UIntN* srcN  = (UIntN*)((((uintptr_t)src8) PRE_LOOP_ADJUST) &   \
+  uintn* srcN  = (uintn*)((((uintptr_t)src8) PRE_LOOP_ADJUST) &   \
                            ~(TYPE_WIDTH - 1));                    \
   size_t length  = count / TYPE_WIDTH;                            \
-  UIntN srcWord = INC_VAL(srcN);                                  \
-  UIntN dstWord;                                                  \
+  uintn srcWord = INC_VAL(srcN);                                  \
+  uintn dstWord;                                                  \
                                                                   \
   while (length & 7)                                              \
     {                                                             \
@@ -284,10 +284,10 @@
  ****************************************************************************/
 
 #ifdef CONFIG_MEMCPY_64BIT
-typedef uint64_t            UIntN;
+typedef uint64_t            uintn;
 #  define TYPE_WIDTH        8L
 #else
-typedef uint32_t            UIntN;
+typedef uint32_t            uintn;
 #  define TYPE_WIDTH        4L
 #endif