- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 212 for bitPos (1.3 sec)
-
src/runtime/gc_test.go
// always rounded up 8 bytes. for _, n := range []int{8, 16, 32, 64, 128} { b.Run(fmt.Sprintf("bits=%d", n*8), func(b *testing.B) { // Initialize a new byte slice with pseduo-random data. bits := make([]byte, n) rand.Read(bits) b.ResetTimer() for i := 0; i < b.N; i++ { runtime.MSpanCountAlloc(s, bits) } }) } } func countpwg(n *int, ready *sync.WaitGroup, teardown chan bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
src/crypto/ecdh/nist.go
// license that can be found in the LICENSE file. package ecdh import ( "crypto/internal/boring" "crypto/internal/nistec" "crypto/internal/randutil" "errors" "internal/byteorder" "io" "math/bits" ) type nistCurve[Point nistPoint[Point]] struct { name string newPoint func() Point scalarOrder []byte } // nistPoint is a generic constraint for the nistec Point types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 8.1K bytes - Viewed (0) -
src/hash/fnv/fnv.go
// Compute the multiplication s0, s1 := bits.Mul64(prime128Lower, s[1]) s0 += s[1]<<prime128Shift + prime128Lower*s[0] // Update the values s[1] = s1 s[0] = s0 s[1] ^= uint64(c) } return len(data), nil } func (s *sum128a) Write(data []byte) (int, error) { for _, c := range data { s[1] ^= uint64(c) // Compute the multiplication s0, s1 := bits.Mul64(prime128Lower, s[1])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 8.5K bytes - Viewed (0) -
cmd/erasure-healing-common_test.go
f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0) if err != nil { t.Fatalf("Failed to open %s: %s\n", filePath, err) } f.WriteString("oops") // Will cause bitrot error f.Close() break } } rQuorum := len(errs) - z.serverPools[0].sets[0].defaultParityCount
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 23K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
* This method does so by hashing 64 bits of the IPv6 address into {@code 224.0.0.0/3} (64 bits * into 29 bits): * * <ul> * <li>If the IPv6 address contains an embedded IPv4 address, the function hashes that. * <li>Otherwise, it hashes the upper 64 bits of the IPv6 address. * </ul> * * <p>A "coerced" IPv4 address is equivalent to itself.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 47.1K bytes - Viewed (0) -
src/net/netip/inlining_test.go
"Addr.withoutZone", "AddrPortFrom", "AddrPort.Addr", "AddrPort.Port", "AddrPort.IsValid", "Prefix.IsSingleIP", "Prefix.Masked", "Prefix.IsValid", "PrefixFrom", "Prefix.Addr", "Prefix.Bits", "AddrFrom4", "IPv6LinkLocalAllNodes", "IPv6Unspecified", "MustParseAddr", "MustParseAddrPort", "MustParsePrefix", "appendDecimal", "appendHex", "uint128.addOne", "uint128.and",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go
uploadOK = false } // TODO(rfindley): check that all the x.Meta are consistent for GOOS, GOARCH, etc. report := &telemetry.Report{ Config: u.configVersion, X: computeRandom(), // json encodes all the bits Week: expiryDate, LastWeek: lastWeek, } if report.X > u.config.SampleRate && u.config.SampleRate > 0 { u.logger.Printf("X: %f > SampleRate:%f, not uploadable", report.X, u.config.SampleRate)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.3K bytes - Viewed (0) -
src/runtime/sizeclasses.go
// 66 28672 57344 2 0 4.91% 4096 // 67 32768 32768 1 0 12.50% 8192 // alignment bits min obj size // 8 3 8 // 16 4 32 // 32 5 256 // 64 6 512 // 128 7 768 // 4096 12 28672
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:27 UTC 2024 - 9.2K bytes - Viewed (0) -
src/crypto/md5/md5.go
// 8 bytes representing the message length in bits. // // 1 byte end marker :: 0-63 padding bytes :: 8 byte length tmp := [1 + 63 + 8]byte{0x80} pad := (55 - d.len) % 64 // calculate number of padding bytes byteorder.LePutUint64(tmp[1+pad:], d.len<<3) // append length in bits d.Write(tmp[:1+pad+8]) // The previous write ensures that a whole number of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 4.3K bytes - Viewed (0) -
src/runtime/mheap.go
return p } // newAllocBits returns a pointer to 8 byte aligned bytes // to be used for this span's alloc bits. // newAllocBits is used to provide newly initialized spans // allocation bits. For spans not being initialized the // mark bits are repurposed as allocation bits when // the span is swept. func newAllocBits(nelems uintptr) *gcBits { return newMarkBits(nelems) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0)