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

Add AVX2/BMI1/BMI2 detection support #864

Merged
merged 1 commit into from Aug 24, 2014

Conversation

FioraAeterna
Copy link
Contributor

Also clean up the formatting in a bit of the CPU detection code.

(Can someone actually test this? I don't have a Haswell yet ^^;)

Also clean up the formatting in a bit of the CPU detection code.
@Sonicadvance1
Copy link
Contributor

Works for me, shows my Haswell supports all three.

__cpuid(cpu_id, 0x00000007);
// careful; we can't enable AVX2 unless the XSAVE/XGETBV checks above passed
if ((cpu_id[1] >> 5) & 1)
bAVX2 = bAVX;

This comment was marked as off-topic.

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Aug 24, 2014

@FioraAeterna: This comment grants you the permission to merge this pull request whenever you think it is ready. After addressing the remaining comments, click this link to merge.


LGTM, other than that stupid comment you can feel free to ignore.

@dolphin-emu-bot allowmerge

dolphin-emu-bot added a commit that referenced this pull request Aug 24, 2014
Add AVX2/BMI1/BMI2 detection support
@dolphin-emu-bot dolphin-emu-bot merged commit f31ebd2 into dolphin-emu:master Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants