summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author balr0g <balrog032@gmail.com>2016-03-16 19:04:35 -0400
committer balr0g <balrog032@gmail.com>2016-03-16 19:04:42 -0400
commit5d52e272bad00b5d9abbcd915b01c16deb6ebbf7 (patch)
treee0b0d1320810a0522c6aaffac5b0811ea6a1abf3
parent804fa20d56f5fc1019da249d24acb63233e30bf0 (diff)
Remove no-longer-needed normalization from gba (nw)
-rw-r--r--src/emu/attotime.h11
-rw-r--r--src/mame/drivers/gba.cpp4
2 files changed, 0 insertions, 15 deletions
diff --git a/src/emu/attotime.h b/src/emu/attotime.h
index 0cdaa424ca0..a0915ae07f2 100644
--- a/src/emu/attotime.h
+++ b/src/emu/attotime.h
@@ -117,17 +117,6 @@ public:
UINT64 as_ticks(UINT32 frequency) const;
const char *as_string(int precision = 9) const;
- // Needed by gba.c FIXME: this shouldn't be necessary?
-
- void normalize()
- {
- while (m_attoseconds >= ATTOSECONDS_PER_SECOND)
- {
- m_seconds++;
- m_attoseconds -= ATTOSECONDS_PER_SECOND;
- }
- }
-
attoseconds_t attoseconds() const { return m_attoseconds; }
seconds_t seconds() const { return m_seconds; }
diff --git a/src/mame/drivers/gba.cpp b/src/mame/drivers/gba.cpp
index abaea79d40d..f2c05930332 100644
--- a/src/mame/drivers/gba.cpp
+++ b/src/mame/drivers/gba.cpp
@@ -35,8 +35,6 @@ static inline void ATTR_PRINTF(3,4) verboselog(device_t &device, int n_level, co
}
}
-#define GBA_ATTOTIME_NORMALIZE(a) a.normalize()
-
static const UINT32 timer_clks[4] = { 16777216, 16777216/64, 16777216/256, 16777216/1024 };
@@ -343,7 +341,6 @@ TIMER_CALLBACK_MEMBER(gba_state::timer_expire)
final = clocksel / rate;
m_timer_hz[tmr] = final;
time = attotime::from_hz(final);
- GBA_ATTOTIME_NORMALIZE(time);
m_tmr_timer[tmr]->adjust(time, tmr, time);
}
@@ -1639,7 +1636,6 @@ WRITE32_MEMBER(gba_state::gba_io_w)
if( !(data & 0x40000) ) // if we're not in Count-Up mode
{
attotime time = attotime::from_hz(final);
- GBA_ATTOTIME_NORMALIZE(time);
m_tmr_timer[offset]->adjust(time, offset, time);
}
}