mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-08-04 04:21:03 +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
|
||||||
#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)
|
#define sizeof_field(type, field) sizeof(((type *)0)->field)
|
||||||
|
|
||||||
static double rint( double x )
|
static double rint( double x )
|
||||||
|
|
Loading…
Reference in a new issue