From 9a1f977e39d8e9fcb6a9cb2a612f4743e802221d Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 10 Nov 2023 15:47:08 +0100 Subject: Kernel Style: Change uint*_t -> u* --- kernel/libc/string/memcpy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel/libc/string/memcpy.c') diff --git a/kernel/libc/string/memcpy.c b/kernel/libc/string/memcpy.c index 5c04407..1313261 100644 --- a/kernel/libc/string/memcpy.c +++ b/kernel/libc/string/memcpy.c @@ -1,18 +1,18 @@ #include "../include/string.h" void * -memcpy(void *dest, const void *src, uint32_t n) { +memcpy(void *dest, const void *src, u32 n) { unsigned char *d = dest; const unsigned char *s = src; for (; n >= 8; n -= 8, d += 8, s += 8) - *(uint64_t *)d = *(uint64_t *)s; + *(u64 *)d = *(u64 *)s; for (; n >= 4; n -= 4, d += 4, s += 4) - *(uint32_t *)d = *(uint32_t *)s; + *(u32 *)d = *(u32 *)s; for (; n >= 2; n -= 2, d += 2, s += 2) - *(uint16_t *)d = *(uint16_t *)s; + *(u16 *)d = *(u16 *)s; for (; n; n--) *d++ = *s++; -- cgit v1.2.3