mirror of
https://github.com/holub/mame
synced 2025-06-30 07:58:56 +03:00
These two should be noexcept as well (nw)
This commit is contained in:
parent
199598977e
commit
946d9d085e
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user