Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.6] bpo-30192: Check that Python is 64-bit before enabling BLAKE2_USE_SSE. (GH-1332) #2042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[3.6] Check that Python is 64-bit before enabling BLAKE2_USE_SSE. (GH…
…-1332)

(cherry picked from commit 6c991bd)
  • Loading branch information
nascheme committed Jun 9, 2017
commit 4aa20d9055dc184730db7e19978224f1782d0e9b
7 changes: 5 additions & 2 deletions 7 setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,11 @@ def detect_modules(self):
blake2_deps.append('hashlib.h')

blake2_macros = []
if not cross_compiling and os.uname().machine == "x86_64":
# Every x86_64 machine has at least SSE2.
if (not cross_compiling and
os.uname().machine == "x86_64" and
sys.maxsize > 2**32):
# Every x86_64 machine has at least SSE2. Check for sys.maxsize
# in case that kernel is 64-bit but userspace is 32-bit.
blake2_macros.append(('BLAKE2_USE_SSE', '1'))

exts.append( Extension('_blake2',
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.