go-randomx/fpu/round.go
DataHoarder b207b994b3
All checks were successful
continuous-integration/drone/push Build is passing
Working RandomX with minimal assembly for rounding mode (AMD64,ARM64)
2024-04-11 08:46:34 +02:00

15 lines
235 B
Go

package fpu
type RoundingMode uint8
const (
RoundingModeToNearest = RoundingMode(iota)
RoundingModeToNegative
RoundingModeToPositive
RoundingModeToZero
)
func SetRoundingMode(mode RoundingMode) {
setRoundingMode(uint8(mode))
}