Ejemplo n.º 1
0
>>>>>>> Fix for Issue #163 and #178

    BOOST_FORCEINLINE result_type
    operator()(A0 const& a0, State const& p, Data const& t) const
    {
      i_t nl  = nt2::splat<i_t>(numel(a0));
      i_t p1  = nt2::enumerate<i_t>(p) % nl;
      i_t spl = selsub( nt2::lt(pl,nl), pl, nl );

      return if_else( nt2::lt(pl,nl)
                    , nt2::run(boost::proto::child_c<0>(a0),p1 ,t)
                    , nt2::run(boost::proto::child_c<0>(a0),sp1,t)
                    );
    }
Ejemplo n.º 2
0
int
main(int argc, char *argv[])
{
	speed = 0;
	more = 1;
	pwline = getlogin();
	setbuf(stdout, malloc(BUFSIZ));
	selsub(argc, argv);
	signal(SIGHUP, signal_hangup);
	signal(SIGINT, signal_intrpt);
	while (more) {
		selunit();
		dounit();
		whatnow();
	}
	wrapup(0);
	return (0);
}