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

Method _zero_eax

numexpr3/cpuinfo.py:674–682  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

672 # FIXME: We should not have to use different instructions to
673 # set eax to 0 or 1, on 32bit and 64bit machines.
674 def _zero_eax(self):
675 if DataSource.bits == '64bit':
676 return (
677 b"\x66\xB8\x00\x00" # mov eax,0x0"
678 )
679 else:
680 return (
681 b"\x31\xC0" # xor ax,ax
682 )
683
684 def _one_eax(self):
685 if DataSource.bits == '64bit':

Callers 1

get_vendor_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected