The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
bitShiftMask
mir
bitop
Bit mask for bit index to get element's bit shift (31 for uint).
enum
uint
bitShiftMask
(
T
:
ubyte
)
;
enum
uint
bitShiftMask
(
T
:
byte
)
;
enum
uint
bitShiftMask
(
T
:
ushort
)
;
enum
uint
bitShiftMask
(
T
:
short
)
;
enum
uint
bitShiftMask
(
T
:
uint
)
;
enum
uint
bitShiftMask
(
T
:
int
)
;
enum
uint
bitShiftMask
(
T
:
ulong
)
;
enum
uint
bitShiftMask
(
T
:
long
)
;
enum
uint
bitShiftMask
(
T
:
ucent
)
;
static if
(
is(ucent)
)
enum
uint
bitShiftMask
(
T
:
ucent
)
;
enum
uint
bitShiftMask
(
T
:
cent
)
;
Meta
Source
See Implementation
mir
bitop
functions
bt
bta
btc
btr
bts
ctlz
ctlzp
ctpop
cttz
cttzp
nLeadingBitsToCount
nTrailingBitsToCount
variables
bitElemShift
bitShiftMask
Bit mask for bit index to get element's bit shift (31 for uint).