2024-04-12 00:00:46 +00:00
|
|
|
package randomx
|
|
|
|
|
2024-05-02 14:11:08 +00:00
|
|
|
import "git.gammaspectra.live/P2Pool/go-randomx/v3/internal/memory"
|
|
|
|
|
2024-04-19 08:41:55 +00:00
|
|
|
type SuperScalarProgramFunc []byte
|
2024-04-18 10:09:05 +00:00
|
|
|
|
|
|
|
type VMProgramFunc []byte
|
2024-05-02 14:11:08 +00:00
|
|
|
|
|
|
|
func (f SuperScalarProgramFunc) Close() error {
|
|
|
|
return memory.FreeSlice(pageAllocator, f)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (f VMProgramFunc) Close() error {
|
|
|
|
return memory.FreeSlice(pageAllocator, f)
|
|
|
|
}
|