User: Password:
|
|
Subscribe / Log in / New account

Knock me over with a feather

Knock me over with a feather

Posted Feb 2, 2012 20:05 UTC (Thu) by dashesy (guest, #74652)
In reply to: Knock me over with a feather by ncm
Parent article: Betrayed by a bitfield

Can someone please explain, what could be the advantage of a "one-bit bitfield" over an integer here?


(Log in to post comments)

Knock me over with a feather

Posted Feb 2, 2012 20:46 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

Maybe they're planning to have several flags in future?

Knock me over with a feather

Posted Feb 2, 2012 21:57 UTC (Thu) by dlang (subscriber, #313) [Link]

the thing is, this compiler bug would break that too.

Knock me over with a feather

Posted Feb 3, 2012 6:50 UTC (Fri) by ncm (subscriber, #165) [Link]

Yes, the real bug was the 32-bit lock word. The bitfield was just to tempt fate.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds