bitop_ex

Various extensions to core.bitop and std.bitmanip.

Members

Aliases

bt
alias bt = getBit
Undocumented in source.
btm
alias btm = makeBit
Undocumented in source.
btr
alias btr = resetBit
Undocumented in source.
bts
alias bts = setBit
Undocumented in source.
getBottomBit
alias getBottomBit = getLowBit
Undocumented in source.
getTopBit
alias getTopBit = getHighBit
Undocumented in source.
resetBottomBit
alias resetBottomBit = resetLowestBit
Undocumented in source.
resetTopBit
alias resetTopBit = resetHighestBit
Undocumented in source.
setBottomBit
alias setBottomBit = setLowestBit
Undocumented in source.
setTopBit
alias setTopBit = setHighestBit
Undocumented in source.

Functions

getBit
bool getBit(T a, I bixs)
getBit
bool getBit(T a, I bix)
getHighBit
bool getHighBit(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
getLowBit
bool getLowBit(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
makeBit
T makeBit(I bixs)
resetBit
void resetBit(T a, I bixs)
Undocumented in source. Be warned that the author may not have intended to support it.
resetBit
void resetBit(T a, I bixs)
Undocumented in source. Be warned that the author may not have intended to support it.
resetHighestBit
void resetHighestBit(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
resetLowestBit
void resetLowestBit(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
setBit
void setBit(T a, I bixs)

Test and sets the bix:th Bit Of a to one.

setBit
void setBit(T a, I bixs)
setHighestBit
void setHighestBit(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
setLowestBit
void setLowestBit(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
testGetBit
void testGetBit()
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

UnsignedOfSameSizeAs
template UnsignedOfSameSizeAs(T)

Get an Unsigned Type of size as T if possible.

Meta