#More bit field problems
07-Jun-90 18:14:59
Sb: #107965-#More bit field problems
Fm: Mike Spille/Manx 71545,1466
To: Harry Callesis 72025,117
No, its definitely not a bug. Both ANSI and K&R essentially say that
bit-field implimentation is entirely implimentation-defined, and Lattice's
implimentation doesn't seem to do anything really bizarre. Perhaps it does
not perform optimally on a 68000, but this only shows that bitfields are
generally pretty kludgy, entirely non-portable, and dangerous to use if you
don't really know what you're doing. In many cases its better to use an
int or long or whatever, and do the masking and shifting yourself.
-Mike