View source code
Display the source code in core/bitop.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Function core.bitop.bt
Tests the bit. (No longer an intrisic - the compiler recognizes the patterns in the body.)
Prototype
int bt( const(ulong*) p, ulong bitnum ) pure nothrow @nogc;
Example
size_t[2] array; array[0] = 2; array[1] = 0x100; assert(bt(array.ptr, 1)); assert(array[0] == 2); assert(array[1] == 0x100);
Authors
Don Clugston, Sean Kelly, Walter Bright, Alex Rønne Petersen