43 #define INT_ADD_SIZE(x,s,y) x ## s ## y
44 #define INT_ADD_DEF_SIZE(x,s,y) INT_ADD_SIZE(x,s,y)
45 #define INT_SIZE(x,y) INT_ADD_DEF_SIZE(x,WM_LABEL_SIZE,y)
47 #if WM_LABEL_SIZE != 32 && WM_LABEL_SIZE != 64
48 #error "label.H: WM_LABEL_SIZE must be set to either 32 or 64"
82 while (i >>= 1) log2i++;
116 #undef INT_ADD_DEF_SIZE
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label log2(label i)
Return the log base 2 by successive bit-shifting of the given label.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
label & setComponent(label &l, const direction)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
label readLabel(Istream &is)
label factorial(label n)
Return n! : 0 < n <= 12.
static const label labelMax
static const label labelMin