MCPcopy
hub / github.com/jwasham/practice-python / is_bit_set

Function is_bit_set

bit_manipulation/bits.py:30–31  ·  view source on GitHub ↗
(x, pos)

Source from the content-addressed store, hash-verified

28
29
30def is_bit_set(x, pos):
31 return (x & (1 << pos)) != 0
32
33
34def is_even(x):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected