All of lore.kernel.org
 help / color / mirror / Atom feed
* Coding style: bit fields
@ 2005-02-19 17:37 Giuliano Pochini
  2005-02-22 21:04 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Giuliano Pochini @ 2005-02-19 17:37 UTC (permalink / raw)
  To: Alsa-devel



The echoaudio driver has many flags in chip_t stored as bit fields. It
doesn't save any space because accessing a bitfield requires more
instructions than accessing a byte. Eg. ppc needs one instruction to write a
char and three instructions to write a bitfield (load, modify, store, 12
bytes...). I'm thinking about replacing all af them with chars. Is it ok ?



--
Giuliano.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-08 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-19 17:37 Coding style: bit fields Giuliano Pochini
2005-02-22 21:04 ` Takashi Iwai
2005-02-26 18:59   ` Giuliano Pochini
2005-03-08 15:47     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.