Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6c991bde
Commit
6c991bde
authored
Apr 28, 2017
by
Neil Schemenauer
Committed by
GitHub
Apr 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that Python is 64-bit before enabling BLAKE2_USE_SSE. (#1332)
parent
d1a1def7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
setup.py
setup.py
+5
-2
No files found.
setup.py
View file @
6c991bde
...
...
@@ -898,8 +898,11 @@ class PyBuildExt(build_ext):
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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment