File:  [HATARI the Atari ST Emulator] / hatari / src / cpu / uae / likely.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:56:44 2019 UTC (7 years, 3 months ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, hatari02100, hatari02000, HEAD
hatari 2.0.0

#ifndef UAE_LIKELY_H
#define UAE_LIKELY_H

#ifndef WINUAE_FOR_HATARI		/* not necessary for Hatari, already done in main.h */
#ifdef HAVE___BUILTIN_EXPECT

#define likely(x)   __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)

#else

#define likely(x)   x
#define unlikely(x) x

#endif
#endif	/* !WINUAE_FOR_HATARI */

#endif /* UAE_LIKELY_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.