Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
compiler.h
Go to the documentation of this file.
1
34
#ifndef _INCLUDE_COMPILER_H_
35
#define _INCLUDE_COMPILER_H_
36
37
#if defined (__GNUC__)
38
#define LIKELY(x) __builtin_expect(!!(x), 1)
39
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
40
#else
41
#define LIKELY(x) (x)
42
#define UNLIKELY(x) (x)
43
#endif
44
45
#endif
// _INCLUDE_COMPILER_H_
include
compiler.h
Generated on Sun Feb 2 2025 21:18:13 for Open Model Railroad Network (OpenMRN) by
1.9.8