From 22689eda494608f376f0c673fcb97af840aba9d6 Mon Sep 17 00:00:00 2001 From: tevador <37503146+tevador@users.noreply.github.com> Date: Fri, 30 Aug 2019 09:28:18 +0200 Subject: [PATCH] Increase the frequency of CBRANCH (#118) --- src/asm/configuration.asm | 4 ++-- src/configuration.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/asm/configuration.asm b/src/asm/configuration.asm index f812c28..794d7ad 100644 --- a/src/asm/configuration.asm +++ b/src/asm/configuration.asm @@ -15,7 +15,7 @@ RANDOMX_SCRATCHPAD_L2 EQU 262144t RANDOMX_SCRATCHPAD_L1 EQU 16384t RANDOMX_JUMP_BITS EQU 8t RANDOMX_JUMP_OFFSET EQU 8t -RANDOMX_FREQ_IADD_RS EQU 25t +RANDOMX_FREQ_IADD_RS EQU 16t RANDOMX_FREQ_IADD_M EQU 7t RANDOMX_FREQ_ISUB_R EQU 16t RANDOMX_FREQ_ISUB_M EQU 7t @@ -41,7 +41,7 @@ RANDOMX_FREQ_FSCAL_R EQU 6t RANDOMX_FREQ_FMUL_R EQU 32t RANDOMX_FREQ_FDIV_M EQU 4t RANDOMX_FREQ_FSQRT_R EQU 6t -RANDOMX_FREQ_CBRANCH EQU 16t +RANDOMX_FREQ_CBRANCH EQU 25t RANDOMX_FREQ_CFROUND EQU 1t RANDOMX_FREQ_ISTORE EQU 16t RANDOMX_FREQ_NOP EQU 0t diff --git a/src/configuration.h b/src/configuration.h index a2a9fd1..84400dd 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -82,7 +82,7 @@ Total sum of frequencies must be 256 */ //Integer instructions -#define RANDOMX_FREQ_IADD_RS 25 +#define RANDOMX_FREQ_IADD_RS 16 #define RANDOMX_FREQ_IADD_M 7 #define RANDOMX_FREQ_ISUB_R 16 #define RANDOMX_FREQ_ISUB_M 7 @@ -112,7 +112,7 @@ Total sum of frequencies must be 256 #define RANDOMX_FREQ_FSQRT_R 6 //Control instructions -#define RANDOMX_FREQ_CBRANCH 16 +#define RANDOMX_FREQ_CBRANCH 25 #define RANDOMX_FREQ_CFROUND 1 //Store instruction