diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/cpu/rsp/vrsq.h | |
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/devices/cpu/rsp/vrsq.h')
-rw-r--r-- | src/devices/cpu/rsp/vrsq.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/cpu/rsp/vrsq.h b/src/devices/cpu/rsp/vrsq.h index f657bc42554..d4bdb190fec 100644 --- a/src/devices/cpu/rsp/vrsq.h +++ b/src/devices/cpu/rsp/vrsq.h @@ -1,17 +1,17 @@ // license:BSD-3-Clause // copyright-holders:Tyler J. Stachecki,Ryan Holtz -rsp_vec_t vec_vrsq(INT32 dp, UINT32 src, UINT32 e, UINT32 dest, UINT32 de) +rsp_vec_t vec_vrsq(int32_t dp, uint32_t src, uint32_t e, uint32_t dest, uint32_t de) { // Get the element from VT. - INT16 vt = m_v[src].s[e & 0x7]; + int16_t vt = m_v[src].s[e & 0x7]; - UINT32 dp_input = ((UINT32) m_div_in << 16) | (UINT16) vt; - UINT32 sp_input = vt; + uint32_t dp_input = ((uint32_t) m_div_in << 16) | (uint16_t) vt; + uint32_t sp_input = vt; - INT32 input = (dp) ? dp_input : sp_input; - INT32 input_mask = input >> 31; - INT32 data = input ^ input_mask; + int32_t input = (dp) ? dp_input : sp_input; + int32_t input_mask = input >> 31; + int32_t data = input ^ input_mask; if (input > -32768) { @@ -19,7 +19,7 @@ rsp_vec_t vec_vrsq(INT32 dp, UINT32 src, UINT32 e, UINT32 dest, UINT32 de) } // Handle edge cases. - INT32 result; + int32_t result; if (data == 0) { result = 0x7fffffff; @@ -30,9 +30,9 @@ rsp_vec_t vec_vrsq(INT32 dp, UINT32 src, UINT32 e, UINT32 dest, UINT32 de) } else // Main case: compute the reciprocal. { - UINT32 shift = count_leading_zeros(data); + uint32_t shift = count_leading_zeros(data); - UINT32 idx = (((UINT64) data << shift) & 0x7fc00000) >> 22; + uint32_t idx = (((uint64_t) data << shift) & 0x7fc00000) >> 22; idx = ((idx | 0x200) & 0x3fe) | (shift % 2); result = rsp_divtable[idx]; @@ -47,9 +47,9 @@ rsp_vec_t vec_vrsq(INT32 dp, UINT32 src, UINT32 e, UINT32 dest, UINT32 de) return vec_load_unshuffled_operand(m_v[dest].s); } -rsp_vec_t vec_vrsqh(UINT32 src, UINT32 e, UINT32 dest, UINT32 de) +rsp_vec_t vec_vrsqh(uint32_t src, uint32_t e, uint32_t dest, uint32_t de) { - INT16 elements[8]; + int16_t elements[8]; // Get the element from VT. memcpy(elements, &m_v[src], sizeof(rsp_vec_t)); |