summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/olibochu.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-06-12 03:00:21 +1000
committer Vas Crabb <cuavas@users.noreply.github.com>2021-06-13 09:38:01 +1000
commit73d97b7dc492871d3dcf4ee919fc443dd2308dec (patch)
treec394cccb9d6514a5b8e69f054d5d27ecc50a5d58 /src/mame/drivers/olibochu.cpp
parent27b93b23486533747d9ba185ff54da860223a463 (diff)
Added helpers for 64-bit count leading zeroes/ones.
Diffstat (limited to 'src/mame/drivers/olibochu.cpp')
-rw-r--r--src/mame/drivers/olibochu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/olibochu.cpp b/src/mame/drivers/olibochu.cpp
index dbcb0ab94ba..8fa5924cec8 100644
--- a/src/mame/drivers/olibochu.cpp
+++ b/src/mame/drivers/olibochu.cpp
@@ -257,7 +257,7 @@ void olibochu_state::sound_command_w(offs_t offset, uint8_t data)
else
m_cmd = (m_cmd & 0xff00) | uint16_t(data);
- unsigned c = count_leading_zeros(uint32_t(m_cmd)) - 16;
+ unsigned c = count_leading_zeros_32(uint32_t(m_cmd)) - 16;
if (c < 16)
m_soundlatch->write(c);
}