ReactOS 0.4.15-dev-7958-gcd0bb1a
compiler.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INLINE_KEYWORD
 
#define FORCE_INLINE_ATTR
 
#define FORCE_INLINE_TEMPLATE   static INLINE_KEYWORD FORCE_INLINE_ATTR
 
#define HINT_INLINE   static INLINE_KEYWORD FORCE_INLINE_ATTR
 
#define UNUSED_ATTR
 
#define FORCE_NOINLINE   static
 
#define __has_attribute(x)   0 /* Compatibility with non-clang compilers. */
 
#define TARGET_ATTRIBUTE(target)
 
#define DYNAMIC_BMI2   0
 
#define PREFETCH_L1(ptr)   (void)(ptr) /* disabled */
 
#define PREFETCH_L2(ptr)   (void)(ptr) /* disabled */
 
#define CACHELINE_SIZE   64
 
#define PREFETCH_AREA(p, s)
 
#define DONT_VECTORIZE
 
#define LIKELY(x)   (x)
 
#define UNLIKELY(x)   (x)
 

Macro Definition Documentation

◆ __has_attribute

#define __has_attribute (   x)    0 /* Compatibility with non-clang compilers. */

Definition at line 84 of file compiler.h.

◆ CACHELINE_SIZE

#define CACHELINE_SIZE   64

Definition at line 129 of file compiler.h.

◆ DONT_VECTORIZE

#define DONT_VECTORIZE

Definition at line 149 of file compiler.h.

◆ DYNAMIC_BMI2

#define DYNAMIC_BMI2   0

Definition at line 103 of file compiler.h.

◆ FORCE_INLINE_ATTR

#define FORCE_INLINE_ATTR

Definition at line 31 of file compiler.h.

◆ FORCE_INLINE_TEMPLATE

#define FORCE_INLINE_TEMPLATE   static INLINE_KEYWORD FORCE_INLINE_ATTR

FORCE_INLINE_TEMPLATE is used to define C "templates", which take constant parameters. They must be inlined for the compiler to eliminate the constant branches.

Definition at line 46 of file compiler.h.

◆ FORCE_NOINLINE

#define FORCE_NOINLINE   static

Definition at line 78 of file compiler.h.

◆ HINT_INLINE

#define HINT_INLINE   static INLINE_KEYWORD FORCE_INLINE_ATTR

HINT_INLINE is used to help the compiler generate better code. It is not used for "templates", so it can be tweaked based on the compilers performance.

gcc-4.8 and gcc-4.9 have been shown to benefit from leaving off the always_inline attribute.

clang up to 5.0.0 (trunk) benefit tremendously from the always_inline attribute.

Definition at line 61 of file compiler.h.

◆ INLINE_KEYWORD

#define INLINE_KEYWORD

Definition at line 23 of file compiler.h.

◆ LIKELY

#define LIKELY (   x)    (x)

Definition at line 161 of file compiler.h.

◆ PREFETCH_AREA

#define PREFETCH_AREA (   p,
  s 
)
Value:
{ \
const char* const _ptr = (const char*)(p); \
size_t const _size = (size_t)(s); \
size_t _pos; \
for (_pos=0; _pos<_size; _pos+=CACHELINE_SIZE) { \
PREFETCH_L2(_ptr + _pos); \
} \
}
#define CACHELINE_SIZE
Definition: compiler.h:129
__kernel_size_t size_t
Definition: linux.h:237
GLdouble s
Definition: gl.h:2039
GLfloat GLfloat p
Definition: glext.h:8902

Definition at line 131 of file compiler.h.

◆ PREFETCH_L1

#define PREFETCH_L1 (   ptr)    (void)(ptr) /* disabled */

Definition at line 124 of file compiler.h.

◆ PREFETCH_L2

#define PREFETCH_L2 (   ptr)    (void)(ptr) /* disabled */

Definition at line 125 of file compiler.h.

◆ TARGET_ATTRIBUTE

#define TARGET_ATTRIBUTE (   target)

Definition at line 89 of file compiler.h.

◆ UNLIKELY

#define UNLIKELY (   x)    (x)

Definition at line 162 of file compiler.h.

◆ UNUSED_ATTR

#define UNUSED_ATTR

Definition at line 68 of file compiler.h.