Skip to content

Commit

Permalink
Merge pull request #130 from hyc/gccwin32
Browse files Browse the repository at this point in the history
Fix for win32 build with gcc
  • Loading branch information
tevador authored Sep 25, 2019
2 parents 7c405a7 + 1694aa8 commit a70dfd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/instructions_portable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void rx_set_rounding_mode(uint32_t mode) {

#ifdef RANDOMX_USE_X87

#ifdef _M_IX86
#if defined(_MSC_VER) && defined(_M_IX86)

void rx_set_double_precision() {
_control87(_PC_53, _MCW_PC);
Expand Down
2 changes: 1 addition & 1 deletion src/intrin_portable.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ constexpr int RoundToZero = 3;
//the library "sqrt" function provided by MSVC for x86 targets doesn't give
//the correct results, so we have to use inline assembly to call x87 fsqrt directly
#if !defined(__SSE2__)
#if defined(_M_IX86)
#if defined(_MSC_VER) && defined(_M_IX86)
inline double __cdecl rx_sqrt(double x) {
__asm {
fld x
Expand Down

0 comments on commit a70dfd8

Please sign in to comment.