external: randomwow: fix ISUB_R JIT on ARM64 and RISC-V

Port of tevador/RandomX#325, shipped in RandomX v1.2.2 and picked up
by Monero v0.18.5.3. With src = dst and imm = 0x80000000 the ARM64
and RISC-V JIT negated -2^31 to itself and produced a wrong hash.
RandomWOW is RandomX v1.2.1 plus parameters, and the patch applies
unchanged.
This commit is contained in:
2026-10-04 18:54:18 -04:00
parent a8818ce56d
commit b2e0cbe3ef