[mythtv] [mythtv-commits] mythtv commit: r18315 by paulh

Nigel Pearson nigel at ind.tansu.com.au
Mon Sep 22 06:44:03 UTC 2008


> Cal, I think your version always returns false...
>  VB_MEDIA&VB_EXTRA => 0


Oops. Yep. Left to right, so its the same as

((print_verbose_messages & VB_MEDIA) & VB_EXTRA)

The first expression is either 0 or 0x00800000.
Either of these ANDed with 0x40000000 is 0!



I'm still lost about this form, though:
(print_verbose_messages & (VB_MEDIA+VB_EXTRA))

0x00800000 + 0x40000000 should be 0x40800000,
no matter how the compiler slices and dices it?




I originally started using the A+B form because
it makes it clearer in a VERBOSE call that both
values are required.

--
Nigel Pearson, nigel at ind.tansu.com.au|An atheist is a person|
Telstra Net. Eng., Sydney, Australia | with no invisible    |
Office: 9202 3900    Fax:  9261 3912 | means of support!    |
Mobile: 0408 664435  Home: 9792 6998 |    - Sir John Buchan.|





More information about the mythtv-dev mailing list