MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / bitmap_is_set

Function bitmap_is_set

include/my_bitmap.h:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98static inline my_bool bitmap_is_set(const MY_BITMAP *map, uint bit)
99{
100 DBUG_ASSERT(bit < map->n_bits);
101 return ((uchar*)map->bitmap)[bit / 8] & (1 << (bit & 7));
102}
103
104/**
105 Quite unlike other C comparison functions ending with 'cmp', e.g. memcmp(),

Callers 1

is_setMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected