diff options
Diffstat (limited to 'src/lib/netlist/devices/nld_truthtable.h')
-rw-r--r-- | src/lib/netlist/devices/nld_truthtable.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/lib/netlist/devices/nld_truthtable.h b/src/lib/netlist/devices/nld_truthtable.h index 157aea166fc..a252dbe3bbe 100644 --- a/src/lib/netlist/devices/nld_truthtable.h +++ b/src/lib/netlist/devices/nld_truthtable.h @@ -17,8 +17,8 @@ #include "nl_factory.h" #include "plib/plists.h" -#define NETLIB_TRUTHTABLE(cname, nIN, nOUT) \ - class NETLIB_NAME(cname) : public nld_truthtable_t<nIN, nOUT> \ +#define NETLIB_TRUTHTABLE(cname, nIN, nOUT) \ + class NETLIB_NAME(cname) : public nld_truthtable_t<nIN, nOUT> \ { \ public: \ template <class C> \ @@ -34,16 +34,15 @@ namespace netlist { namespace devices { - template<unsigned bits> struct need_bytes_for_bits { - enum { value = - bits <= 8 ? 1 : - bits <= 16 ? 2 : - bits <= 32 ? 4 : - 8 - }; + enum { value = + bits <= 8 ? 1 : + bits <= 16 ? 2 : + bits <= 32 ? 4 : + 8 + }; }; template<unsigned bits> struct uint_for_size; @@ -361,9 +360,9 @@ namespace netlist } /* FIXME: check width */ - state_var_u32 m_ign; - state_var_s32 m_active; - truthtable_t * m_ttp; + state_var_u32 m_ign; + state_var_s32 m_active; + truthtable_t * m_ttp; plib::pstring_vector_t m_desc; }; |