unlikely()

Nov 27, 2011 at 3:28pm
Hello ,

I want to conver linux code to windows code . But How can I convert
unlikely() function in windows . I found __assume() but I dont know its true or not and also it gives error c2451.I'm new in c++...

Nov 27, 2011 at 5:30pm
You must move this question to the *nix forum. It is unlikely (hehe, get it? I'm funny) that Windows programmers know the equivalents.
Nov 27, 2011 at 6:00pm
A little reading suggests they (likely() and unlikely()) are conditional optimization macros and aren't necessary unless you're writing a kernel or kernel module. So unless you are trying to port a driver you can probably remove the call to unlikely.
Nov 28, 2011 at 5:54am
Thanks for your answer. I removed..
Topic archived. No new replies allowed.