Skip to content
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

Mac M1 Support #395

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Conditionally use emmintrin header if arch is not arm64
itsjohnward committed Dec 31, 2021
commit 57e0bf680495c5ec9a29148d4112b1dd32d77034
5 changes: 4 additions & 1 deletion bottleneck/src/bn_config.py
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
"""
import os
import sys
import platform
import textwrap
from distutils.command.config import config as Config
from typing import List
@@ -11,7 +12,9 @@
("HAVE_ATTRIBUTE_OPTIMIZE_OPT_3", '__attribute__((optimize("O3")))')
]

OPTIONAL_HEADERS = []
OPTIONAL_HEADERS = (
[] if platform.machine() == "arm64" else [("HAVE_SSE2", "emmintrin.h")]
)

OPTIONAL_INTRINSICS = [
("HAVE___BUILTIN_ISNAN", "__builtin_isnan", "0."),