summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-09 22:10:08 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-09 22:10:08 -0500
commit946d9d085e7517ebb247152e6781ba0a4ac09a26 (patch)
tree54370f760a46d0fb8ec9038294b9591022f0a3d8 /src/emu
parent199598977ec6aa5e897bb37a83de89e08d14eba9 (diff)
These two should be noexcept as well (nw)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/device.cpp4
-rw-r--r--src/emu/device.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp
index 934c05ddcd7..cd7bc5918ec 100644
--- a/src/emu/device.cpp
+++ b/src/emu/device.cpp
@@ -409,7 +409,7 @@ void device_t::calculate_derived_clock()
// clock ticks to an attotime
//-------------------------------------------------
-attotime device_t::clocks_to_attotime(u64 numclocks) const
+attotime device_t::clocks_to_attotime(u64 numclocks) const noexcept
{
if (m_clock == 0)
return attotime::never;
@@ -429,7 +429,7 @@ attotime device_t::clocks_to_attotime(u64 numclocks) const
// attotime to CPU clock ticks
//-------------------------------------------------
-u64 device_t::attotime_to_clocks(const attotime &duration) const
+u64 device_t::attotime_to_clocks(const attotime &duration) const noexcept
{
if (m_clock == 0)
return 0;
diff --git a/src/emu/device.h b/src/emu/device.h
index a99c4589eab..6e729402989 100644
--- a/src/emu/device.h
+++ b/src/emu/device.h
@@ -599,8 +599,8 @@ public:
void set_unscaled_clock_int(u32 clock) { set_unscaled_clock(clock); } // non-overloaded name because binding to overloads is ugly
double clock_scale() const { return m_clock_scale; }
void set_clock_scale(double clockscale);
- attotime clocks_to_attotime(u64 clocks) const;
- u64 attotime_to_clocks(const attotime &duration) const;
+ attotime clocks_to_attotime(u64 clocks) const noexcept;
+ u64 attotime_to_clocks(const attotime &duration) const noexcept;
// timer interfaces
emu_timer *timer_alloc(device_timer_id id = 0, void *ptr = nullptr);