Do you use bit fields?

jejones at ea.UUCP jejones at ea.UUCP
Thu Sep 27 00:37:00 AEST 1984


/***** ea:net.lang.c / sri-arpa!ARPA /  6:38 pm  Sep 21, 1984 */
(It could be worse:  the JOVIAL I saw masked off bitfields by shifting them
to the high order end of the word, then shifting back to the low order end.
Never heard of the AND instruction, I guess.)
/* ---------- */

Perhaps they wanted to turn them into signed integers? That's what I did
when retrieving bit fields (unless they were wanted as unsigned quantities,
or for comparison with zero--you pegged it on the needless overhead there)
when I wrote a code generator.

						James Jones



More information about the Comp.lang.c mailing list