| | |
Bitfields
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
>Is the first entry the most significant bit or what?
IIRC, it's or what.
>bump
Don't bump your threads, it's rude. I mean really, is 30 minutes really that long to wait? It's not like Daniweb is a real-time chat with paid people helping 24/7 or anything.
IIRC, it's or what.
>bump
Don't bump your threads, it's rude. I mean really, is 30 minutes really that long to wait? It's not like Daniweb is a real-time chat with paid people helping 24/7 or anything.
Last edited by Narue; Mar 13th, 2008 at 5:07 pm.
I'm here to prove you wrong.
>As for the question?
Sorry, I guess my joke was too subtle. The answer is "or what". IIRC, when you have the following in gcc, a is the least significant bit:
Sorry, I guess my joke was too subtle. The answer is "or what". IIRC, when you have the following in gcc, a is the least significant bit:
c Syntax (Toggle Plain Text)
struct foo { unsigned int a:1; unsigned int b:1; };
Last edited by Narue; Mar 13th, 2008 at 5:39 pm.
I'm here to prove you wrong.
•
•
•
•
How does gcc order bitfields on a little-endian machine? Is the first entry the most significant bit or what?
but really, it all comes down to the fact that the Blefuscudians are stupid fools who ruin perfectly good soft-boiled eggs.
Last edited by jephthah; Mar 14th, 2008 at 3:24 pm.
![]() |
Similar Threads
- Is a variant return type possible in C++? (C++)
- structure bit fields (C)
- help with union and bit field structure. (C++)
- Downtime (DaniWeb Community Feedback)
- Compiling Programs (C++)
Other Threads in the C Forum
- Previous Thread: please correct it..
- Next Thread: What's the difference?(linked list)
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays asterisks binarysearch calculate changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv feet fflush fgets file fork forloop framework function getlasterror givemetehcodez grade gtkwinlinux hacking histogram inches include incrementoperators input intmain() iso kernel keyboard km lazy license linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft motherboard mqqueue number oddnumber odf opendocumentformat opensource overwrite owf pattern pdf performance pointer posix problem probleminc process program programming radix recursion recv recvblocked research reversing scanf scripting segmentationfault sequential socket socketprograming standard string systemcall testing threads turboc unix user variable voidmain() wab whythiscodecausesegmentationfault windowsapi






