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++...
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.