diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/lib/util/coreutil.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/lib/util/coreutil.cpp')
-rw-r--r-- | src/lib/util/coreutil.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/util/coreutil.cpp b/src/lib/util/coreutil.cpp index 90bcab9ab1a..8ff9585d476 100644 --- a/src/lib/util/coreutil.cpp +++ b/src/lib/util/coreutil.cpp @@ -27,9 +27,9 @@ int bcd_adjust(int value) } -UINT32 dec_2_bcd(UINT32 a) +uint32_t dec_2_bcd(uint32_t a) { - UINT32 result = 0; + uint32_t result = 0; int shift = 0; while (a != 0) @@ -42,10 +42,10 @@ UINT32 dec_2_bcd(UINT32 a) } -UINT32 bcd_2_dec(UINT32 a) +uint32_t bcd_2_dec(uint32_t a) { - UINT32 result = 0; - UINT32 scale = 1; + uint32_t result = 0; + uint32_t scale = 1; while (a != 0) { @@ -106,19 +106,19 @@ int gregorian_days_in_month(int month, int year) void rand_memory(void *memory, size_t length) { - static UINT32 seed = 0; - UINT8 *bytes = (UINT8 *) memory; + static uint32_t seed = 0; + uint8_t *bytes = (uint8_t *) memory; size_t i; for (i = 0; i < length; i++) { seed = seed * 214013 + 2531011; - bytes[i] = (UINT8) (seed >> 16); + bytes[i] = (uint8_t) (seed >> 16); } } -UINT32 core_crc32(UINT32 crc, const UINT8 *buf, UINT32 len) +uint32_t core_crc32(uint32_t crc, const uint8_t *buf, uint32_t len) { return crc32(crc, buf, len); } |