mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-06 00:17:39 +00:00
Merge pull request #912 from SChernykh/master
Correct FP rounding mode for cn/half
This commit is contained in:
commit
005a09cd98
1 changed files with 2 additions and 2 deletions
|
@ -66,9 +66,9 @@
|
||||||
__m128i sqrt_result_xmm_##part = _mm_cvtsi64_si128(h##part[13]);
|
__m128i sqrt_result_xmm_##part = _mm_cvtsi64_si128(h##part[13]);
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# define VARIANT2_SET_ROUNDING_MODE() if (VARIANT == xmrig::VARIANT_2) { _control87(RC_DOWN, MCW_RC); }
|
# define VARIANT2_SET_ROUNDING_MODE() if (BASE == xmrig::VARIANT_2) { _control87(RC_DOWN, MCW_RC); }
|
||||||
#else
|
#else
|
||||||
# define VARIANT2_SET_ROUNDING_MODE() if (VARIANT == xmrig::VARIANT_2) { fesetround(FE_DOWNWARD); }
|
# define VARIANT2_SET_ROUNDING_MODE() if (BASE == xmrig::VARIANT_2) { fesetround(FE_DOWNWARD); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# define VARIANT2_INTEGER_MATH(part, cl, cx) \
|
# define VARIANT2_INTEGER_MATH(part, cl, cx) \
|
||||||
|
|
Loading…
Reference in a new issue