public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Stupid PCI Bit-naming convention question
@ 2001-12-06 22:34 Calin A. Culianu
  2001-12-06 23:51 ` H. Peter Anvin
  0 siblings, 1 reply; 3+ messages in thread
From: Calin A. Culianu @ 2001-12-06 22:34 UTC (permalink / raw)
  To: linux-kernel


In my attempts to investigate whether or not my m/b is afflicted by the
VIA KT266 hardware bug at device 1106:3099 register 0x95, bits 5,6,7, I
have a dumb question:  Namely, how are bits numbered?

I would assume that bits are numbered from smallest value to largest,
indexed at 0, so that bit 7 is the '128' component of a byte and bit 0 is
the '1' component.. correct?




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Stupid PCI Bit-naming convention question
@ 2001-12-07  8:36 Zwane Mwaikambo
  0 siblings, 0 replies; 3+ messages in thread
From: Zwane Mwaikambo @ 2001-12-07  8:36 UTC (permalink / raw)
  To: calin; +Cc: Linux Kernel

Most things in computers start from 0, so an 8bit variable starts at
bit0-7. With 2^x determining the highest value an x bit variable can hold.

Cheers,
	Zwane Mwaikambo



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

end of thread, other threads:[~2001-12-07  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-06 22:34 Stupid PCI Bit-naming convention question Calin A. Culianu
2001-12-06 23:51 ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2001-12-07  8:36 Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox