From d3313eeae96f925e447fc3c43d2a607ba120f283 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 2 Apr 2021 08:57:44 +0200 Subject: [PATCH] libs: libc: lib_vikmemcpy.c: Mixed case identifier fix fix Mixed case identifier reported by nxstyle Signed-off-by: Alin Jerpelea --- 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 94a51bdc3d..3e93b175d3 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