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

Implement workaround for Windows versions which do not support XSAVE. #140

Merged
merged 2 commits into from Mar 6, 2014
Merged

Conversation

shuffle2
Copy link
Contributor

@shuffle2 shuffle2 commented Mar 6, 2014

Fixes CRT math routines using FMA instructions from causing illegal instructions.


#if defined(_WIN32) && defined(_ARCH_64)

// This puts the rest of this translation unit into a segment which is

This comment was marked as off-topic.

@Parlane
Copy link
Member

Parlane commented Mar 6, 2014

LGTM :)

@delroth
Copy link
Member

delroth commented Mar 6, 2014

Indent with tabs, not spaces. Please explictly #include required files. Other than that, LGTM.

@shuffle2
Copy link
Contributor Author

shuffle2 commented Mar 6, 2014

re: #includes: I can see including math.h here, but do you really want to be including windows.h all over the place?

@delroth
Copy link
Member

delroth commented Mar 6, 2014

We don't use functions from windows.h all over the place. In the files that do, yes, I'd prefer having an explicit #include to make it more clear where some functions come from.

@delroth
Copy link
Member

delroth commented Mar 6, 2014

(also, )

@shuffle2
Copy link
Contributor Author

shuffle2 commented Mar 6, 2014

_set_FMA3_enable is specific to msvc's math.h. I don't think there is really any reason to include cmath and assume you'll get that symbol.

Fixes CRT math routines using FMA instructions from causing illegal instructions.
delroth added a commit that referenced this pull request Mar 6, 2014
Implement workaround for Windows versions which do not support XSAVE.
@delroth delroth merged commit c7b8c75 into dolphin-emu:master Mar 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants