summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms32031/32031ops.hxx
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-11-19 05:35:54 +1100
committer Vas Crabb <vas@vastheman.com>2016-11-19 05:38:48 +1100
commit8179a84458204a5e767446fcf7d10f032a40fd0c (patch)
tree16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/devices/cpu/tms32031/32031ops.hxx
parent1b489fe83034072149fb0637b20c7ba57dc72a7a (diff)
Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
Diffstat (limited to 'src/devices/cpu/tms32031/32031ops.hxx')
-rw-r--r--src/devices/cpu/tms32031/32031ops.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/cpu/tms32031/32031ops.hxx b/src/devices/cpu/tms32031/32031ops.hxx
index 476c5082a3e..a99d3d0295e 100644
--- a/src/devices/cpu/tms32031/32031ops.hxx
+++ b/src/devices/cpu/tms32031/32031ops.hxx
@@ -574,14 +574,14 @@ void tms3203x_device::addf(tmsreg &dst, tmsreg &src1, tmsreg &src2)
}
// if the mantissa is >= 2.0 or < -2.0, normalize
- else if (man >= int64_t(U64(0x100000000)) || man < int64_t(U64(0xffffffff00000000)))
+ else if (man >= int64_t(0x100000000U) || man < int64_t(0xffffffff00000000U))
{
man >>= 1;
exp++;
}
// if the mantissa is < 1.0 and > -1.0, normalize
- else if (man < int64_t(U64(0x80000000)) && man >= int64_t(U64(0xffffffff80000000)))
+ else if (man < int64_t(0x80000000U) && man >= int64_t(0xffffffff80000000U))
{
if (man > 0)
{
@@ -687,14 +687,14 @@ void tms3203x_device::subf(tmsreg &dst, tmsreg &src1, tmsreg &src2)
}
// if the mantissa is >= 2.0 or < -2.0, normalize
- else if (man >= int64_t(U64(0x100000000)) || man < int64_t(U64(0xffffffff00000000)))
+ else if (man >= int64_t(0x100000000U) || man < int64_t(0xffffffff00000000U))
{
man >>= 1;
exp++;
}
// if the mantissa is < 1.0 and > -1.0, normalize
- else if (man < int64_t(U64(0x80000000)) && man >= int64_t(U64(0xffffffff80000000)))
+ else if (man < int64_t(0x80000000U) && man >= int64_t(0xffffffff80000000U))
{
if (man > 0)
{
@@ -778,11 +778,11 @@ void tms3203x_device::mpyf(tmsreg &dst, tmsreg &src1, tmsreg &src2)
}
// if the mantissa is >= 2.0 or <= -2.0, normalize
- else if (man >= int64_t(U64(0x100000000)))
+ else if (man >= int64_t(0x100000000U))
{
man >>= 1;
exp++;
- if (man >= int64_t(U64(0x100000000)))
+ if (man >= int64_t(0x100000000U))
{
man >>= 1;
exp++;
@@ -790,7 +790,7 @@ void tms3203x_device::mpyf(tmsreg &dst, tmsreg &src1, tmsreg &src2)
}
// if the mantissa is >= 2.0 or <= -2.0, normalize
- else if (man < int64_t(U64(0xffffffff00000000)))
+ else if (man < int64_t(0xffffffff00000000U))
{
man >>= 1;
exp++;