go-randomx/asm/round.go

14 lines
235 B
Go

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