Skip to content

Commit b558d5b

Browse files
committed
Fixup useless comparison warnings when RANDOMX_FREQ_IROL_R is zero
1 parent 56e53f3 commit b558d5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/RandomX/randomx_cuda.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,14 @@ __device__ void print_inst(uint2 inst)
316316
}
317317
opcode -= RANDOMX_FREQ_IROR_R;
318318

319+
#if RANDOMX_FREQ_IROL_R > 0
319320
if (opcode < RANDOMX_FREQ_IROL_R)
320321
{
321322
printf("%s%sIROL_R r%u, r%u ", branch_target, fp_inst, dst, src);
322323
break;
323324
}
324325
opcode -= RANDOMX_FREQ_IROL_R;
326+
#endif
325327

326328
if (opcode < RANDOMX_FREQ_ISWAP_R)
327329
{

0 commit comments

Comments
 (0)