diff options
author | 2021-06-12 03:00:21 +1000 | |
---|---|---|
committer | 2021-06-13 09:38:01 +1000 | |
commit | 73d97b7dc492871d3dcf4ee919fc443dd2308dec (patch) | |
tree | c394cccb9d6514a5b8e69f054d5d27ecc50a5d58 /src/mame/drivers/hp9845.cpp | |
parent | 27b93b23486533747d9ba185ff54da860223a463 (diff) |
Added helpers for 64-bit count leading zeroes/ones.
Diffstat (limited to 'src/mame/drivers/hp9845.cpp')
-rw-r--r-- | src/mame/drivers/hp9845.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/hp9845.cpp b/src/mame/drivers/hp9845.cpp index 7976c54cbc9..ab4398b20e7 100644 --- a/src/mame/drivers/hp9845.cpp +++ b/src/mame/drivers/hp9845.cpp @@ -550,7 +550,7 @@ attotime hp9845_base_state::time_to_gv_mem_availability() const void hp9845_base_state::kb_scan_ioport(ioport_value pressed , ioport_port &port , unsigned idx_base , int& max_seq_len , unsigned& max_seq_idx) { while (pressed) { - unsigned bit_no = 31 - count_leading_zeros(pressed); + unsigned bit_no = 31 - count_leading_zeros_32(pressed); ioport_value mask = BIT_MASK(bit_no); int seq_len = port.field(mask)->seq().length(); if (seq_len > max_seq_len) { |