LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] bitfields correction

[ILUG] bitfields correction

Shane Dempsey sdempsey at tssg.wit.ie
Fri May 26 13:29:04 IST 2000


Hi all,
A few weeks ago I made the point that you couldn't use
bitfields in Visual C++. This related to someone's comments
about bitfields being used in the Linux Kernel.

This is totally incorrect. The following is totally legal under
VC++ and I'm using it at the moment

unsigned int my3bitInt : 3; // 0 to 7

Bitfields are standard C but the ordering of bits in bit fields is compiler
specific
In VC++ it seems to be from low to high bit.

I stand corrected.

    ...shane

--
######################################
Shane Dempsey -         sdempsey at tssg.wit.ie
TSSG Researcher -      http://www-tssg.wit.ie

( 0x2b | -0x2b == 0xff ) ? printf("that is the question);
#######################################





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell