diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-01-21 22:20:58 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-01-21 22:20:58 +0000 |
commit | b8aed3ed1b68ab30bbecb83a746a1fdc5b78a464 (patch) | |
tree | cbb5600682d03bfcde0ac843d666925cb3bc2234 /src | |
parent | 670488716dde7ba7813dd281f24403a0b24d8690 (diff) |
Learn to spell correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/mem.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -31,7 +31,7 @@ static inline u32 mem_loadu32(const void *p) { //return (u32)cp[0] | (u32)cp[1] << 8 | (u32)cp[2] << 16 | (u32)cp[3] << 24; } -/* Retreives a signed 32-bit integer from an unaligned pointer. */ +/* Retrieves a signed 32-bit integer from an unaligned pointer. */ static inline s32 mem_loads32(const void *p) { return (s32)mem_loadu32(p); } @@ -42,7 +42,7 @@ static inline u64 mem_loadu64(const void *p) { return (u64)mem_loadu32(p) | (u64)mem_loadu32((uchar *)p + 4) << 32; } -/* Retreives a signed 64-bit integer from an unaligned pointer. */ +/* Retrieves a signed 64-bit integer from an unaligned pointer. */ static inline s64 mem_loads64(const void *p) { return (s64)mem_loadu64(p); } @@ -56,12 +56,12 @@ static inline void *mem_loadptr(const void *p) { #endif } -/* Retreives a signed size/offset value from an unaligned pointer. */ +/* Retrieves a signed size/offset value from an unaligned pointer. */ static inline ssize mem_loadssize(const void *p) { return (ssize)mem_loadptr(p); } -/* Retreives an unsigned size or raw address value from an unaligned pointer. */ +/* Retrieves an unsigned size or raw address value from an unaligned pointer. */ static inline usize mem_loadusize(const void *p) { return (usize)mem_loadptr(p); } |