Standard internal logic to detect hardware crypto

We can't simply link to system internal package, as it is prohibited by
Golang. Let's copy-paste instead.
This commit is contained in:
Sergey Frolov 2018-06-21 10:23:09 -04:00
parent 193d4b28e8
commit 690d770374
12 changed files with 361 additions and 0 deletions

7
cpu/cpu_mips.go Normal file
View file

@ -0,0 +1,7 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package cpu
const CacheLineSize = 32