Skip to content

Commit

Permalink
Fixup useless comparison warnings when RANDOMX_FREQ_IROL_R is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Spudz76 committed May 31, 2023
1 parent d0065c3 commit 5947ae0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RandomX/randomx_cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,14 @@ __device__ void print_inst(uint2 inst)
}
opcode -= RANDOMX_FREQ_IROR_R;

#if RANDOMX_FREQ_IROL_R > 0
if (opcode < RANDOMX_FREQ_IROL_R)
{
printf("%s%sIROL_R r%u, r%u ", branch_target, fp_inst, dst, src);
break;
}
opcode -= RANDOMX_FREQ_IROL_R;
#endif

if (opcode < RANDOMX_FREQ_ISWAP_R)
{
Expand Down

0 comments on commit 5947ae0

Please sign in to comment.