These two should be noexcept as well (nw)

This commit is contained in:
AJR 2019-11-09 22:10:08 -05:00
parent 199598977e
commit 946d9d085e
2 changed files with 4 additions and 4 deletions

View File

@ -409,7 +409,7 @@ void device_t::calculate_derived_clock()
// clock ticks to an attotime // 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) if (m_clock == 0)
return attotime::never; return attotime::never;
@ -429,7 +429,7 @@ attotime device_t::clocks_to_attotime(u64 numclocks) const
// attotime to CPU clock ticks // 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) if (m_clock == 0)
return 0; return 0;

View File

@ -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 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; } double clock_scale() const { return m_clock_scale; }
void set_clock_scale(double clockscale); void set_clock_scale(double clockscale);
attotime clocks_to_attotime(u64 clocks) const; attotime clocks_to_attotime(u64 clocks) const noexcept;
u64 attotime_to_clocks(const attotime &duration) const; u64 attotime_to_clocks(const attotime &duration) const noexcept;
// timer interfaces // timer interfaces
emu_timer *timer_alloc(device_timer_id id = 0, void *ptr = nullptr); emu_timer *timer_alloc(device_timer_id id = 0, void *ptr = nullptr);