OSDN Git Service

new repo
[bytom/vapor.git] / mining / tensority / cgo_algorithm / algorithm_unsupported.go
1 // +build !simd
2
3 package cgo_algorithm
4
5 import (
6         log "github.com/sirupsen/logrus"
7
8         "github.com/vapor/mining/tensority/go_algorithm"
9         "github.com/vapor/protocol/bc"
10 )
11
12 func SimdAlgorithm(bh, seed *bc.Hash) *bc.Hash {
13         log.Warn("SIMD feature is not supported on release version, please compile the lib according to README to enable this feature.")
14         return go_algorithm.LegacyAlgorithm(bh, seed)
15 }