XenevaOS
Loading...
Searching...
No Matches
Macros
compiler.h File Reference
#include <linux/compiler_types.h>
Include dependency graph for compiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define likely(x)   (x)
 
#define unlikely(x)   (x)
 
#define __bitwise
 
#define __force
 
#define __user
 
#define __kernel
 
#define __iomem
 
#define fallthrough   do {} while (0)
 
#define __must_check   __attribute__((warn_unused_result))
 
#define __sched
 
#define __printf(fmt_idx, arg_idx)   __attribute__((__format__(__printf__, fmt_idx, arg_idx)))
 
#define __same_type(a, b)   __builtin_types_compatible_p(typeof(a), typeof(b))
 
#define OPTIMIZER_HIDE_VAR(var)    __asm__ ("" : "=r" (var) : "0" (var))
 
#define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...)    ((int)(0 * sizeof(struct {_Static_assert(!(e), msg);})))
 
#define __is_array(a)   (!__same_type((a), &(a)[0]))
 
#define __must_be_array(a)
 
#define __is_constexpr(x)    (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
 
#define __read_mostly
 

Macro Definition Documentation

◆ __bitwise

#define __bitwise

◆ __BUILD_BUG_ON_ZERO_MSG

#define __BUILD_BUG_ON_ZERO_MSG (   e,
  msg,
  ... 
)     ((int)(0 * sizeof(struct {_Static_assert(!(e), msg);})))

◆ __force

#define __force

◆ __iomem

#define __iomem

◆ __is_array

#define __is_array (   a)    (!__same_type((a), &(a)[0]))

◆ __is_constexpr

#define __is_constexpr (   x)     (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))

◆ __kernel

#define __kernel

◆ __must_be_array

#define __must_be_array (   a)
Value:
"must be array")
size_t a
Definition main.cpp:156
#define __is_array(a)
Definition compiler.h:222
#define __BUILD_BUG_ON_ZERO_MSG(e, msg,...)
Definition compiler.h:216

◆ __must_check

#define __must_check   __attribute__((warn_unused_result))

◆ __printf

#define __printf (   fmt_idx,
  arg_idx 
)    __attribute__((__format__(__printf__, fmt_idx, arg_idx)))

◆ __read_mostly

int debug_locks_silent __read_mostly

◆ __same_type

#define __same_type (   a,
  b 
)    __builtin_types_compatible_p(typeof(a), typeof(b))

◆ __sched

#define __sched

◆ __user

#define __user

◆ fallthrough

#define fallthrough   do {} while (0)

◆ likely

#define likely (   x)    (x)

◆ OPTIMIZER_HIDE_VAR

#define OPTIMIZER_HIDE_VAR (   var)     __asm__ ("" : "=r" (var) : "0" (var))

◆ unlikely

#define unlikely (   x)    (x)