This commit is contained in:
XMRig 2019-07-28 08:06:50 +07:00
parent d10527036e
commit a39e0e05e9
2 changed files with 6 additions and 7 deletions

View file

@ -61,7 +61,6 @@ bool xmrig::Config::read(const IJsonReader &reader, const char *fileName)
# ifdef XMRIG_ALGO_RANDOMX # ifdef XMRIG_ALGO_RANDOMX
if (!m_rx.read(reader.getValue(kRandomX))) { if (!m_rx.read(reader.getValue(kRandomX))) {
printf("upgrade\n");
m_upgrade = true; m_upgrade = true;
} }
# endif # endif

View file

@ -82,12 +82,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define HAVE_SETROUNDMODE_IMPL #define HAVE_SETROUNDMODE_IMPL
#endif #endif
#ifndef HAVE_SETROUNDMODE_IMPL
static void setRoundMode_(uint32_t mode) {
fesetround(mode);
}
#endif
#ifndef HAVE_ROTR64 #ifndef HAVE_ROTR64
uint64_t rotr64(uint64_t a, unsigned int b) { uint64_t rotr64(uint64_t a, unsigned int b) {
return (a >> b) | (a << (-b & 63)); return (a >> b) | (a << (-b & 63));
@ -133,6 +127,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef RANDOMX_DEFAULT_FENV #ifdef RANDOMX_DEFAULT_FENV
# ifndef HAVE_SETROUNDMODE_IMPL
static void setRoundMode_(uint32_t mode) {
fesetround(mode);
}
# endif
void rx_reset_float_state() { void rx_reset_float_state() {
setRoundMode_(FE_TONEAREST); setRoundMode_(FE_TONEAREST);
rx_set_double_precision(); //set precision to 53 bits if needed by the platform rx_set_double_precision(); //set precision to 53 bits if needed by the platform