Fixed bug in upper_u64() function.

This commit is contained in:
LoRd_MuldeR 2021-03-18 22:36:26 +01:00
parent 2e74accf36
commit 11951fc33b
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

View File

@ -89,7 +89,7 @@ static FORCE_INLINE uint32_t lower_u64(const uint64_t value)
static FORCE_INLINE uint32_t upper_u64(const uint64_t value) static FORCE_INLINE uint32_t upper_u64(const uint64_t value)
{ {
return (uint32_t)((value > 32U) & 0xFFFFFFFF); return (uint32_t)((value >> 32U) & 0xFFFFFFFF);
} }
static FORCE_INLINE uint8_t byte_u16(const uint16_t value, const size_t off) static FORCE_INLINE uint8_t byte_u16(const uint16_t value, const size_t off)