bt

Tests the bit. (No longer an intrisic - the compiler recognizes the patterns in the body.)

nothrow @safe @nogc pure @system
int
bt
(
const scope size_t* p
,
size_t bitnum
)

Examples

1 size_t[2] array;
2 
3 array[0] = 2;
4 array[1] = 0x100;
5 
6 assert(bt(array.ptr, 1));
7 assert(array[0] == 2);
8 assert(array[1] == 0x100);
Suggestion Box / Bug Report