Prevent wildcards from being accepted in filenames (NT mode)

Alexandre Julliard julliard at winehq.org
Wed Nov 26 22:51:26 CST 2003


"Dmitry Timoshkov" <dmitry at 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.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list