diff --git a/vvp/vvp_net.cc b/vvp/vvp_net.cc index 42ef41581..f05cfd3f6 100644 --- a/vvp/vvp_net.cc +++ b/vvp/vvp_net.cc @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: vvp_net.cc,v 1.37 2005/06/22 18:30:12 steve Exp $" +#ident "$Id: vvp_net.cc,v 1.38 2005/06/24 02:16:42 steve Exp $" # include "config.h" # include "vvp_net.h" @@ -137,19 +137,6 @@ ostream& operator<<(ostream&out, vvp_bit4_t bit) return out; } -void vvp_send_vec4_pv(vvp_net_ptr_t ptr, const vvp_vector4_t&val, - unsigned base, unsigned wid, unsigned vwid) -{ - while (struct vvp_net_t*cur = ptr.ptr()) { - vvp_net_ptr_t next = cur->port[ptr.port()]; - - if (cur->fun) - cur->fun->recv_vec4_pv(ptr, val, base, wid, vwid); - - ptr = next; - } -} - void vvp_send_vec8(vvp_net_ptr_t ptr, vvp_vector8_t val) { while (struct vvp_net_t*cur = ptr.ptr()) { @@ -1283,6 +1270,9 @@ vvp_bit4_t compare_gtge_signed(const vvp_vector4_t&a, /* * $Log: vvp_net.cc,v $ + * Revision 1.38 2005/06/24 02:16:42 steve + * inline the vvp_send_vec4_pv function. + * * Revision 1.37 2005/06/22 18:30:12 steve * Inline more simple stuff, and more vector4_t by const reference for performance. * diff --git a/vvp/vvp_net.h b/vvp/vvp_net.h index 175029f35..8c9562a53 100644 --- a/vvp/vvp_net.h +++ b/vvp/vvp_net.h @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: vvp_net.h,v 1.39 2005/06/22 18:30:12 steve Exp $" +#ident "$Id: vvp_net.h,v 1.40 2005/06/24 02:16:42 steve Exp $" # include "config.h" # include @@ -870,6 +870,7 @@ inline void vvp_send_vec4(vvp_net_ptr_t ptr, const vvp_vector4_t&val) ptr = next; } } + extern void vvp_send_vec8(vvp_net_ptr_t ptr, vvp_vector8_t val); extern void vvp_send_real(vvp_net_ptr_t ptr, double val); extern void vvp_send_long(vvp_net_ptr_t ptr, long val); @@ -893,11 +894,25 @@ extern void vvp_send_long(vvp_net_ptr_t ptr, long val); * know how wide to pad with Z, if it needs to transform the part to a * mirror of the destination vector. */ -extern void vvp_send_vec4_pv(vvp_net_ptr_t ptr, const vvp_vector4_t&val, - unsigned base, unsigned wid, unsigned vwid); +inline void vvp_send_vec4_pv(vvp_net_ptr_t ptr, const vvp_vector4_t&val, + unsigned base, unsigned wid, unsigned vwid) +{ + while (struct vvp_net_t*cur = ptr.ptr()) { + vvp_net_ptr_t next = cur->port[ptr.port()]; + + if (cur->fun) + cur->fun->recv_vec4_pv(ptr, val, base, wid, vwid); + + ptr = next; + } +} + /* * $Log: vvp_net.h,v $ + * Revision 1.40 2005/06/24 02:16:42 steve + * inline the vvp_send_vec4_pv function. + * * Revision 1.39 2005/06/22 18:30:12 steve * Inline more simple stuff, and more vector4_t by const reference for performance. *