MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bitmapSetBit

Function bitmapSetBit

app/redis-6.2.6/src/cluster.c:3814–3818  ·  view source on GitHub ↗

Set the bit at position 'pos' in a bitmap. */

Source from the content-addressed store, hash-verified

3812
3813/* Set the bit at position 'pos' in a bitmap. */
3814void bitmapSetBit(unsigned char *bitmap, int pos) {
3815 off_t byte = pos/8;
3816 int bit = pos&7;
3817 bitmap[byte] |= 1<<bit;
3818}
3819
3820/* Clear the bit at position 'pos' in a bitmap. */
3821void bitmapClearBit(unsigned char *bitmap, int pos) {

Callers 1

clusterNodeSetSlotBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected