Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __get_nbits
Method
__get_nbits
numpy/distutils/cpuinfo.py:88–91 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
86
return
1
87
88
def
__get_nbits(self):
89
abits = platform.architecture()[0]
90
nbits = re.compile(r
'(\d+)bit'
).search(abits).group(1)
91
return
nbits
92
93
def
_is_32bit(self):
94
return
self.__get_nbits() ==
'32'
Callers
2
_is_32bit
Method · 0.95
_is_64bit
Method · 0.95
Calls
1
compile
Method · 0.45
Tested by
no test coverage detected