From 990b8a5c03af88de48110febf50086efcf6d1e49 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 23 Dec 2018 22:04:17 -0500 Subject: Downscope (nw) --- src/mame/audio/sente6vb.h | 13 ++++++------- src/mame/includes/balsente.h | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/mame/audio/sente6vb.h b/src/mame/audio/sente6vb.h index ae1afa49a3a..1edfd3eaa9e 100644 --- a/src/mame/audio/sente6vb.h +++ b/src/mame/audio/sente6vb.h @@ -17,15 +17,14 @@ #include "sound/cem3394.h" -#define POLY17_BITS 17 -#define POLY17_SIZE ((1 << POLY17_BITS) - 1) -#define POLY17_SHL 7 -#define POLY17_SHR 10 -#define POLY17_ADD 0x18000 - - class sente6vb_device : public device_t { + static constexpr unsigned POLY17_BITS = 17; + static constexpr size_t POLY17_SIZE = (1 << POLY17_BITS) - 1; + static constexpr unsigned POLY17_SHL = 7; + static constexpr unsigned POLY17_SHR = 10; + static constexpr uint32_t POLY17_ADD = 0x18000; + public: sente6vb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); diff --git a/src/mame/includes/balsente.h b/src/mame/includes/balsente.h index b6953bf9141..70405d7b53c 100644 --- a/src/mame/includes/balsente.h +++ b/src/mame/includes/balsente.h @@ -30,15 +30,14 @@ #define BALSENTE_VBSTART (0x100) -#define POLY17_BITS 17 -#define POLY17_SIZE ((1 << POLY17_BITS) - 1) -#define POLY17_SHL 7 -#define POLY17_SHR 10 -#define POLY17_ADD 0x18000 - - class balsente_state : public driver_device { + static constexpr unsigned POLY17_BITS = 17; + static constexpr size_t POLY17_SIZE = (1 << POLY17_BITS) - 1; + static constexpr unsigned POLY17_SHL = 7; + static constexpr unsigned POLY17_SHR = 10; + static constexpr uint32_t POLY17_ADD = 0x18000; + public: balsente_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) -- cgit v1.2.3