summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/fd1094.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 10:29:21 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-04 10:29:21 +0100
commit1b0ec08af5cd3b3268b5889ba4e30409431434e2 (patch)
tree42c510afaaeb15e1f97eff044a4d295586c30aaa /src/mame/machine/fd1094.cpp
parent5a2f80dcde2e76356bf568f1e2d71b054a7db45b (diff)
clang-modernize part 6
Diffstat (limited to 'src/mame/machine/fd1094.cpp')
-rw-r--r--src/mame/machine/fd1094.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/machine/fd1094.cpp b/src/mame/machine/fd1094.cpp
index 4d0992ef30e..6fb0f8b866e 100644
--- a/src/mame/machine/fd1094.cpp
+++ b/src/mame/machine/fd1094.cpp
@@ -500,8 +500,8 @@ fd1094_decryption_cache::fd1094_decryption_cache(fd1094_device &fd1094)
void fd1094_decryption_cache::reset()
{
// reset all allocated cache buffers
- for (int cache = 0; cache < 256; cache++)
- m_decrypted_opcodes[cache].clear();
+ for (auto & elem : m_decrypted_opcodes)
+ elem.clear();
}
@@ -570,9 +570,9 @@ fd1094_device::fd1094_device(const machine_config &mconfig, const char *tag, dev
// create the initial masked opcode table
memset(m_masked_opcodes_lookup, 0, sizeof(m_masked_opcodes_lookup));
- for (int index = 0; index < ARRAY_LENGTH(s_masked_opcodes); index++)
+ for (auto opcode : s_masked_opcodes)
{
- UINT16 opcode = s_masked_opcodes[index];
+
m_masked_opcodes_lookup[0][opcode >> 4] |= 1 << ((opcode >> 1) & 7);
m_masked_opcodes_lookup[1][opcode >> 4] |= 1 << ((opcode >> 1) & 7);
}