Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #430 from shuffle2/xsave-workaround-fix
msvc C initializers return int...fix EnableXSaveWorkaround when rax doesn't implicitly equal zero.
  • Loading branch information
delroth committed May 28, 2014
2 parents 2a14c55 + 47a2eb4 commit 10efd5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/Common/XSaveWorkaround.cpp
Expand Up @@ -7,7 +7,7 @@
#include <math.h>
#include <Windows.h>

void EnableXSaveWorkaround()
int __cdecl EnableXSaveWorkaround()
{
// Some Windows environments may have hardware support for AVX/FMA,
// but the OS does not support it. The CRT math library does not support
Expand All @@ -20,6 +20,8 @@ void EnableXSaveWorkaround()
{
_set_FMA3_enable(0);
}

return 0;
}

// Create a segment which is recognized by the linker to be part of the CRT
Expand Down

0 comments on commit 10efd5b

Please sign in to comment.