fix purego bytecode / rounding mode calls
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
DataHoarder 2024-04-18 09:06:53 +02:00
parent 80f473de54
commit ef069318b9
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
package randomx
func (f ProgramFunc) Execute(rl *RegisterLine) {
func (f ProgramFunc) Execute(v uintptr) {
}

View file

@ -107,7 +107,7 @@ func (c *ByteCode) Execute(f *RegisterFile, pad *ScratchPad, eMask [2]uint64) {
f.E[i.Dst][HIGH] = softfloat64.Sqrt(f.E[i.Dst][HIGH], softfloat64.RoundingMode(f.FPRC))
case VM_CFROUND:
tmp := (bits.RotateLeft64(f.R[i.Src], 0-int(i.Imm))) % 4 // rotate right
c.SetRoundingMode(f, uint8(tmp))
SetRoundingMode(f, uint8(tmp))
case VM_CBRANCH:
f.R[i.Src] += i.Imm