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

nvmath: Fix SSE detection logic #11

Merged
merged 1 commit into from
Dec 15, 2017
Merged

Conversation

akien-mga
Copy link
Contributor

@akien-mga akien-mga commented Dec 15, 2017

Some code assumed that NV_CPU_X86 || NV_CPU_X86_64 is enough to check
for SSE support, but that's incorrect. There are plenty of older x86 CPUs
which don't support SSE (see this Godot Engine issue).

Also fixed the SSE2 detection logic, previously it could not reach the
#elif __SSE2__ branch since __SSE__ is defined too when SSE2 is supported.

Some code assumed that `NV_CPU_X86 || NV_CPU_X86_64` is enough to check
for SSE support, but that's wrong. There are plenty of older x86 CPUs
which don't support SSE.

Also fixed the SSE2 detection logic, previously it could not reach the
`#elif __SSE2__` branch since __SSE__ is defined too when SSE2 is supported.
@castano castano merged commit b46d64e into Thekla:master Dec 15, 2017
@castano
Copy link
Contributor

castano commented Dec 15, 2017

Thanks for the fix!

akien-mga added a commit to godotengine/godot that referenced this pull request Dec 15, 2017
Fixes #14709.

Same as Thekla/thekla_atlas#11,
but adding  comments until it's merged upstream.
@akien-mga akien-mga deleted the fix-sse-logic branch December 15, 2017 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants