go-randomx/register.go

23 lines
356 B
Go
Raw Normal View History

2024-04-11 14:04:59 +00:00
package randomx
2024-04-14 13:43:54 +00:00
const RegistersCount = 8
const RegistersCountFloat = 4
const LOW = 0
const HIGH = 1
2024-04-14 13:43:54 +00:00
type RegisterLine [RegistersCount]uint64
type RegisterFile struct {
R RegisterLine
F [RegistersCountFloat][2]float64
E [RegistersCountFloat][2]float64
A [RegistersCountFloat][2]float64
FPRC uint8
2024-04-14 13:43:54 +00:00
}
type MemoryRegisters struct {
mx, ma uint64
}