ReactOS  0.4.15-dev-1070-ge1a01de
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 FORCE_NOINLINE   static
 
#define __has_attribute(x)   0 /* Compatibility with non-clang compilers. */
 
#define TARGET_ATTRIBUTE(target)
 
#define DYNAMIC_BMI2   0
 
#define PREFETCH(ptr)   (void)(ptr) /* disabled */
 
#define CACHELINE_SIZE   64
 
#define PREFETCH_AREA(p, s)
 

Macro Definition Documentation

◆ __has_attribute

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

Definition at line 68 of file compiler.h.

◆ CACHELINE_SIZE

#define CACHELINE_SIZE   64

Definition at line 112 of file compiler.h.

◆ DYNAMIC_BMI2

#define DYNAMIC_BMI2   0

Definition at line 87 of file compiler.h.

◆ FORCE_INLINE_ATTR

#define FORCE_INLINE_ATTR

Definition at line 29 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 elimininate the constant branches.

Definition at line 37 of file compiler.h.

◆ FORCE_NOINLINE

#define FORCE_NOINLINE   static

Definition at line 62 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 52 of file compiler.h.

◆ INLINE_KEYWORD

#define INLINE_KEYWORD

Definition at line 21 of file compiler.h.

◆ PREFETCH

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

Definition at line 108 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(_ptr + _pos); \
} \
}
#define CACHELINE_SIZE
Definition: compiler.h:112
__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 114 of file compiler.h.

◆ TARGET_ATTRIBUTE

#define TARGET_ATTRIBUTE (   target)

Definition at line 73 of file compiler.h.