From ddb290d5f615019c33c42b8d94e5a5254cabcf33 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 13:13:17 +0200 Subject: 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 --- src/lib/util/coreutil.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib/util/coreutil.cpp') 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); } -- cgit v1.2.3-70-g09d2