// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package bits
+package bits_test
import (
+ . "math/bits"
"testing"
"unsafe"
)
// Exported (global) variable serving as input for some
// of the benchmarks to ensure side-effect free calls
// are not optimized away.
-var Input uint64 = deBruijn64
+var Input uint64 = DeBruijn64
// Exported (global) variable to store function results
// during benchmarking to ensure side-effect free calls
}
func TestRotateLeft(t *testing.T) {
- var m uint64 = deBruijn64
+ var m uint64 = DeBruijn64
for k := uint(0); k < 128; k++ {
x8 := uint8(m)
--- /dev/null
+// Copyright 2018 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 bits
+
+const DeBruijn64 = deBruijn64