MCPcopy Create free account
hub / github.com/pydata/numexpr / is_bit_set

Function is_bit_set

numexpr3/cpuinfo.py:578–581  ·  view source on GitHub ↗
(reg, bit)

Source from the content-addressed store, hash-verified

576 return (arch, bits)
577
578def is_bit_set(reg, bit):
579 mask = 1 << bit
580 is_set = reg & mask > 0
581 return is_set
582
583
584class CPUID(object):

Callers 2

get_flagsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…