mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 23:55:11 +01:00
feat(modules): migrate to go modules and bump go version 1.14.4
- migrate to go module - bump go version 1.14.4 Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
parent
f5ae3ff476
commit
fa76b346a0
837 changed files with 104140 additions and 158314 deletions
24
vendor/gonum.org/v1/gonum/mat/offset_appengine.go
generated
vendored
Normal file
24
vendor/gonum.org/v1/gonum/mat/offset_appengine.go
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright ©2015 The Gonum Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build appengine safe
|
||||
|
||||
package mat
|
||||
|
||||
import "reflect"
|
||||
|
||||
var sizeOfFloat64 = int(reflect.TypeOf(float64(0)).Size())
|
||||
|
||||
// offset returns the number of float64 values b[0] is after a[0].
|
||||
func offset(a, b []float64) int {
|
||||
va0 := reflect.ValueOf(a).Index(0)
|
||||
vb0 := reflect.ValueOf(b).Index(0)
|
||||
if va0.Addr() == vb0.Addr() {
|
||||
return 0
|
||||
}
|
||||
// This expression must be atomic with respect to GC moves.
|
||||
// At this stage this is true, because the GC does not
|
||||
// move. See https://golang.org/issue/12445.
|
||||
return int(vb0.UnsafeAddr()-va0.UnsafeAddr()) / sizeOfFloat64
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue