[haiku-development] Re: Question about |=

  • From: Fredrik Modèen <fredrik@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 12 Aug 2012 00:01:15 +0200 (CEST)

[..]
> Imagine fScanMode is worth 1, in binary that would be 00000001, that
> operator is equivalent to fScanMode = fScanMode | 2.  Now 2 is
> 00000010, so the operation will give that fScanMode == 00000011.  Is
> that answering your question? :)  In essence, it is setting the second
> bit in 'less significant order' to 1.
Yes thanks :)

-- 
MVH
Fredrik Modèen


Other related posts: