54#include <linux/kernel.h>
68static inline unsigned long array_index_mask_nospec(
unsigned long index,
96#define array_index_nospec(index, size) \
98 typeof(index) _i = (index); \
99 typeof(size) _s = (size); \
101 BUILD_BUG_ON(sizeof(_i) > sizeof(unsigned long)); \
102 unsigned long _mask = \
103 array_index_mask_nospec((unsigned long)_i, \
104 (unsigned long)_s); \
105 (typeof(_i))(_i & _mask); \
#define index(str, chr)
Definition string.h:66
#define BITS_PER_LONG
Definition bordoisila_bits.h:36
#define OPTIMIZER_HIDE_VAR(var)
Definition compiler.h:176
size_t size
Definition drm_bridge.h:1299