ctz

Counts the number of trailing zeroes in DIR direction in mask.

@nogc pragma(inline)
size_t
ctz
(
uint DIR
)
(
size_t mask
)

Parameters

DIR

Direction to count in, will find index if DIR == 0 or last index if DIR == 1.

mask size_t

Mask to be counted from.

Return Value

Type: size_t

Number of trailing zeroes in DIR direction in mask.

Meta