mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
qemu_mode: make building warning free
This commit is contained in:
@ -154,15 +154,19 @@ typedef int64_t s64;
|
||||
#define MEM_BARRIER() __asm__ volatile("" ::: "memory")
|
||||
|
||||
#if __GNUC__ < 6
|
||||
#define likely(_x) (_x)
|
||||
#define unlikely(_x) (_x)
|
||||
# ifndef likely
|
||||
# define likely(_x) (_x)
|
||||
# endif
|
||||
# ifndef unlikely
|
||||
# define unlikely(_x) (_x)
|
||||
# endif
|
||||
#else
|
||||
#ifndef likely
|
||||
#define likely(_x) __builtin_expect(!!(_x), 1)
|
||||
#endif
|
||||
#ifndef unlikely
|
||||
#define unlikely(_x) __builtin_expect(!!(_x), 0)
|
||||
#endif
|
||||
# ifndef likely
|
||||
# define likely(_x) __builtin_expect(!!(_x), 1)
|
||||
# endif
|
||||
# ifndef unlikely
|
||||
# define unlikely(_x) __builtin_expect(!!(_x), 0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* ! _HAVE_TYPES_H */
|
||||
|
Reference in New Issue
Block a user