Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
compiler.h File Reference

Go to the source code of this file.

Macros

#define INLINE_KEYWORD
 
#define FORCE_INLINE_ATTR
 
#define WIN_CDECL
 
#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 TARGET_ATTRIBUTE(target)
 
#define BMI2_TARGET_ATTRIBUTE   TARGET_ATTRIBUTE("lzcnt,bmi,bmi2")
 
#define PREFETCH_L1(ptr)
 
#define PREFETCH_L2(ptr)
 
#define CACHELINE_SIZE   64
 
#define PREFETCH_AREA(p, s)
 
#define DONT_VECTORIZE
 
#define LIKELY(x)
 
#define UNLIKELY(x)
 
#define STATIC_BMI2   0
 
#define ZSTD_HAS_C_ATTRIBUTE(x)
 
#define ZSTD_HAS_CPP_ATTRIBUTE(x)
 
#define ZSTD_FALLTHROUGH
 
#define ZSTD_ALIGNOF(T)
 

Macro Definition Documentation

◆ BMI2_TARGET_ATTRIBUTE

#define BMI2_TARGET_ATTRIBUTE   TARGET_ATTRIBUTE("lzcnt,bmi,bmi2")

◆ CACHELINE_SIZE

#define CACHELINE_SIZE   64

◆ DONT_VECTORIZE

#define DONT_VECTORIZE

◆ FORCE_INLINE_ATTR

#define FORCE_INLINE_ATTR

◆ 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.

◆ FORCE_NOINLINE

#define FORCE_NOINLINE   static

◆ 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.

◆ INLINE_KEYWORD

#define INLINE_KEYWORD

◆ LIKELY

#define LIKELY ( x)
Value:
(x)

◆ 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:131

◆ PREFETCH_L1

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

◆ PREFETCH_L2

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

◆ STATIC_BMI2

#define STATIC_BMI2   0

◆ TARGET_ATTRIBUTE

#define TARGET_ATTRIBUTE ( target)

◆ UNLIKELY

#define UNLIKELY ( x)
Value:
(x)

◆ UNUSED_ATTR

#define UNUSED_ATTR

◆ WIN_CDECL

#define WIN_CDECL

On MSVC qsort requires that functions passed into it use the __cdecl calling conversion(CC). This explicitly marks such functions as __cdecl so that the code will still compile if a CC other than __cdecl has been made the default.

◆ ZSTD_ALIGNOF

#define ZSTD_ALIGNOF ( T)
Value:
(sizeof(void*) < sizeof(T) ? sizeof(void*) : sizeof(T))

◆ ZSTD_FALLTHROUGH

#define ZSTD_FALLTHROUGH

◆ ZSTD_HAS_C_ATTRIBUTE

#define ZSTD_HAS_C_ATTRIBUTE ( x)
Value:
0

◆ ZSTD_HAS_CPP_ATTRIBUTE

#define ZSTD_HAS_CPP_ATTRIBUTE ( x)
Value:
0