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 Mar 10, 2022
1 parent 56e53f3 commit b558d5b
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 b558d5b

Please sign in to comment.