Previous 199869 Revisions Next

r30983 Sunday 15th June, 2014 at 17:42:27 UTC by Couriersud
Goodbye to m_last_analog ... it was used any longer.
[src/emu/netlist]nl_base.c nl_base.h
[src/emu/netlist/analog]nld_solver.c

trunk/src/emu/netlist/nl_base.c
r30982r30983
460460   , m_time(netlist_time::zero)
461461   , m_active(0)
462462   , m_in_queue(2)
463    , m_last_Analog(0.0)
464463    , m_cur_Analog(0.0)
465464{
466465};
r30982r30983
488487      if (m_active == 1 && m_in_queue > 0)
489488      {
490489         m_last_Q = m_cur_Q;
491         m_last_Analog = m_cur_Analog; // FIXME: Needed here ?
492490         railterminal().netdev().inc_active();
493491         m_cur_Q = m_new_Q;
494492      }
r30982r30983
504502      else
505503      {
506504         m_cur_Q = m_last_Q = m_new_Q;
507         m_last_Analog = m_cur_Analog;
508505         m_in_queue = 2;
509506      }
510507   }
r30982r30983
543540   save(NAME(m_time));
544541   save(NAME(m_active));
545542   save(NAME(m_in_queue));
546    save(NAME(m_last_Analog));
547543    save(NAME(m_cur_Analog));
548544    save(NAME(m_last_Q));
549545    save(NAME(m_cur_Q));
r30982r30983
593589        break;
594590    }
595591   m_last_Q = m_cur_Q;
596   m_last_Analog = m_cur_Analog;
597592}
598593
599594ATTR_COLD void netlist_net_t::reset()
r30982r30983
605600    m_last_Q = 0;
606601    m_new_Q = 0;
607602    m_cur_Q = 0;
608    m_last_Analog = 0.0;
609603    m_cur_Analog = 0.0;
610604
611605   /* rebuild m_list */
r30982r30983
865859{
866860    this->set_net(m_my_net);
867861
868   net().as_analog().m_last_Analog = 0.97;
869862   net().as_analog().m_cur_Analog = 0.98;
870863}
871864
872865ATTR_COLD void netlist_analog_output_t::initial(const double val)
873866{
874   net().as_analog().m_cur_Analog = val * 0.98;
875867   net().as_analog().m_cur_Analog = val * 0.99;
876868}
877869
trunk/src/emu/netlist/nl_base.h
r30982r30983
622622    // We have to have those on one object. Dividing those does lead
623623    // to a significant performance hit
624624    // FIXME: Have to fix the public at some time
625    double m_last_Analog;
626625    double m_cur_Analog;
627626
628627};
trunk/src/emu/netlist/analog/nld_solver.c
r30982r30983
283283    for (netlist_analog_output_t * const *p = m_inps.first(); p != NULL; p = m_inps.next(p))
284284        (*p)->set_Q((*p)->m_proxied_net->m_cur_Analog);
285285
286    for (int k = 0; k < m_nets.count(); k++)
287    {
288        netlist_analog_net_t *p= m_nets[k];
289        p->m_last_Analog = p->m_cur_Analog;
290    }
291286}
292287
293288

Previous 199869 Revisions Next


© 1997-2024 The MAME Team