Re: packed bits question

joy merwin monteiro <[email protected]>
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Hi,

as Robert said, you could do the assembly equivalent of this macro:

#define GET_BIT(ptr,bitnum)  ptr[(bitnum>>3)]>>(7-(bitnum%8))

Joy

--
Girls are like slugs.... You know they are around for a reason, but
you cant imagine what.
                                                                      
                               -- Calvin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.