diff options
Diffstat (limited to 'src/emu/video/resnet.h')
-rw-r--r-- | src/emu/video/resnet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/video/resnet.h b/src/emu/video/resnet.h index acc62bece79..53ef41ee5dd 100644 --- a/src/emu/video/resnet.h +++ b/src/emu/video/resnet.h @@ -106,7 +106,7 @@ struct res_net_channel_info { // - Least significant bit first double R[8]; // Minimum output voltage - // - Applicable if output is routed through a complimentary + // - Applicable if output is routed through a complementary // - darlington circuit // - typical value ~ 0.9V double minout; @@ -161,7 +161,7 @@ void compute_res_net_all(std::vector<rgb_t> &rgb, const u8 *prom, const res_net_ /* legacy interface */ -namespace emu { namespace detail { +namespace emu::detail { template <std::size_t I, typename T, std::size_t N, typename U> constexpr auto combine_weights(T const (&tab)[N], U w) { return tab[I] * w; } @@ -169,7 +169,7 @@ constexpr auto combine_weights(T const (&tab)[N], U w) { return tab[I] * w; } template <std::size_t I, typename T, std::size_t N, typename U, typename... V> constexpr auto combine_weights(T const (&tab)[N], U w0, V... w) { return (tab[I] * w0) + combine_weights<I + 1>(tab, w...); } -} } // namespace emu::detail +} // namespace emu::detail double compute_resistor_weights( int minval, int maxval, double scaler, |