From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frank Ch. Eigler" To: Ben Elliston Cc: sid@sources.redhat.com Subject: Re: modeling latency (fwd) Date: Sun, 24 Jun 2001 17:46:00 -0000 Message-id: <20010624204557.B19255@redhat.com> References: <15149.29984.517393.81892@scooby.apac.redhat.com> <15153.37541.916886.137745@scooby.brisbane.redhat.com> <20010621072133.A4390@redhat.com> <15158.32871.322836.589521@scooby.brisbane.redhat.com> X-SW-Source: 2001-q2/msg00041.html Hi - bje wrote: : [...] : I agree that packing the bus::status struct should be considered : important for performance, given that it is likely passed by value. Right. : As you suggest, there is a g++ extension to help with this: packed : enums, but was never implemented. [...] There may be other relevant extensions: bitfields? In any case, until g++ is able to help us pack this structure, you could arrange the code to do all this, by storing the status enum explicitly within a host_int_2 (or even host_int_1) field, accompanied by the appropriate casts. - FChE -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7NonFVZbdDOm/ZT0RAtT2AJ4xnUQoR+x/jinFDkx0QnT2nEYY4ACdGiXp kEt4LJvjicTSxyeXpid7cfU= =+381 -----END PGP SIGNATURE-----