Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Barrier_Dissemination.cpp File Reference

Macros

#define FAST_LOG2(x)   (sizeof(unsigned long) * 8 - 1 - __builtin_clzl((unsigned long)(x)))
 
#define FAST_LOG2_UP(x)   (((x) - (1 << FAST_LOG2(x))) ? FAST_LOG2(x) + 1 : FAST_LOG2(x))
 

Macro Definition Documentation

#define FAST_LOG2 (   x)    (sizeof(unsigned long) * 8 - 1 - __builtin_clzl((unsigned long)(x)))
#define FAST_LOG2_UP (   x)    (((x) - (1 << FAST_LOG2(x))) ? FAST_LOG2(x) + 1 : FAST_LOG2(x))