Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/linux/compiler.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
#define ___stringify(...) #__VA_ARGS__ | #define ___stringify(...) #__VA_ARGS__ | ||||
#define __stringify(...) ___stringify(__VA_ARGS__) | #define __stringify(...) ___stringify(__VA_ARGS__) | ||||
#define __attribute_const__ __attribute__((__const__)) | #define __attribute_const__ __attribute__((__const__)) | ||||
#undef __always_inline | #undef __always_inline | ||||
#define __always_inline inline | #define __always_inline inline | ||||
#define noinline __noinline | #define noinline __noinline | ||||
#define ____cacheline_aligned __aligned(CACHE_LINE_SIZE) | #define ____cacheline_aligned __aligned(CACHE_LINE_SIZE) | ||||
#ifndef _KERNEL | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||||
#define likely(x) __builtin_expect(!!(x), 1) | #define likely(x) __builtin_expect(!!(x), 1) | ||||
#define unlikely(x) __builtin_expect(!!(x), 0) | #define unlikely(x) __builtin_expect(!!(x), 0) | ||||
#endif | #endif | ||||
#define typeof(x) __typeof(x) | #define typeof(x) __typeof(x) | ||||
#define uninitialized_var(x) x = x | #define uninitialized_var(x) x = x | ||||
#define __maybe_unused __unused | #define __maybe_unused __unused | ||||
#define __always_unused __unused | #define __always_unused __unused | ||||
Show All 22 Lines |