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

Function is_set

numexpr3/cpuinfo.py:1696–1699  ·  view source on GitHub ↗
(bit)

Source from the content-addressed store, hash-verified

1694 feature_bits = DataSource.winreg_feature_bits()
1695
1696 def is_set(bit):
1697 mask = 0x80000000 >> bit
1698 retval = mask & feature_bits > 0
1699 return retval
1700
1701 # http://en.wikipedia.org/wiki/CPUID
1702 # http://unix.stackexchange.com/questions/43539/what-do-the-flags-in-proc-cpuinfo-mean

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…