"Dmitry Timoshkov" dmitry@baikal.ru writes:
(GetVersion() & 0x80000000)==0) construct is very inefficient. It forces compiler generate both a bit mask test and a comparison operation. While many modern processors have very effective bit test instructions, and we have to tell to the compiler that we want only a bit test.
Simple !(GetVersion() & 0x80000000) is much better IMO.
Actually it doesn't force the compiler to do anything different, both mean exactly the same thing, and gcc will generate the exact same code.