mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-28 09:56:57 +00:00
qemu/compiler: Define likely() and unlikely() preprocessor macros if they don't exist
Makes the code more functional with MSVC
This commit is contained in:
parent
80e7661555
commit
d020acd771
|
@ -62,6 +62,14 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef likely
|
||||
#define likely(x) (x)
|
||||
#endif
|
||||
|
||||
#ifndef unlikely
|
||||
#define unlikely(x) (x)
|
||||
#endif
|
||||
|
||||
#define sizeof_field(type, field) sizeof(((type *)0)->field)
|
||||
|
||||
static double rint( double x )
|
||||
|
|
Loading…
Reference in a new issue