- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for setTypes (0.15 sec)
-
src/encoding/binary/binary_test.go
} func BenchmarkPutUint16(b *testing.B) { b.SetBytes(2) for i := 0; i < b.N; i++ { BigEndian.PutUint16(putbuf[:2], uint16(i)) } } func BenchmarkAppendUint16(b *testing.B) { b.SetBytes(2) for i := 0; i < b.N; i++ { putbuf = BigEndian.AppendUint16(putbuf[:0], uint16(i)) } } func BenchmarkPutUint32(b *testing.B) { b.SetBytes(4) for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:16:18 UTC 2024 - 25.4K bytes - Viewed (0) -
src/runtime/type.go
return name{} } base := uintptr(ptrInModule) for md := &firstmoduledata; md != nil; md = md.next { if base >= md.types && base < md.etypes { res := md.types + uintptr(off) if res > md.etypes { println("runtime: nameOff", hex(off), "out of range", hex(md.types), "-", hex(md.etypes)) throw("runtime: name offset out of range") } return name{Bytes: (*byte)(unsafe.Pointer(res))} } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa.go
Q, err := c.pointFromAffine(pub.X, pub.Y) if err != nil { return false } // SEC 1, Version 2.0, Section 4.1.4 r, err := bigmod.NewNat().SetBytes(rBytes, c.N) if err != nil || r.IsZero() == 1 { return false } s, err := bigmod.NewNat().SetBytes(sBytes, c.N) if err != nil || s.IsZero() == 1 { return false } e := bigmod.NewNat() hashToNat(c, e, hash) // w = s⁻¹
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 20.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
for (auto [call_arg, body_arg] : llvm::zip(call.getOperation()->getOperands(), f.getBody().front().getArguments())) { if (call_arg.getType() != body_arg.getType()) { body_arg.setType(call_arg.getType()); changed = true; } } if (changed) { rewriter.finalizeOpModification(f); return success(); } else { rewriter.cancelOpModification(f);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
internal/grid/benchmark_test.go
defer timeout(60 * time.Second)() ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() b.ReportAllocs() b.SetBytes(int64(len(payload) * 2)) b.ResetTimer() t := time.Now() var ops int64 var lat int64 b.SetParallelism(par) b.RunParallel(func(pb *testing.PB) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.7K bytes - Viewed (0) -
src/crypto/internal/edwards25519/field/fe.go
} // Set sets v = a, and returns v. func (v *Element) Set(a *Element) *Element { *v = *a return v } // SetBytes sets v to x, where x is a 32-byte little-endian encoding. If x is // not of the right length, SetBytes returns nil and an error, and the // receiver is unchanged. // // Consistent with RFC 7748, the most significant bit (the high bit of the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 11.8K bytes - Viewed (0) -
src/image/gif/writer_test.go
paletted := image.NewPaletted(image.Rect(0, 0, 640, 480), palette.Plan9) rnd := rand.New(rand.NewSource(123)) for i := range paletted.Pix { paletted.Pix[i] = uint8(rnd.Intn(256)) } b.SetBytes(640 * 480 * 1) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { Encode(io.Discard, paletted, nil) } } func BenchmarkEncodeRandomRGBA(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0) -
src/index/suffixarray/suffixarray_test.go
b.StopTimer() data := benchdata if random { data = benchrand if data[0] == 0 { for i := range data { data[i] = byte(rand.Intn(256)) } } } b.StartTimer() b.SetBytes(int64(len(data))) for i := 0; i < b.N; i++ { New(data) } } func makeText(name string) ([]byte, error) { var data []byte switch name { case "opticks": var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 14.1K bytes - Viewed (0) -
src/crypto/internal/bigmod/nat.go
} bytes[i] = byte(limb) limb >>= 8 } } return bytes } // SetBytes assigns x = b, where b is a slice of big-endian bytes. // SetBytes returns an error if b >= m. // // The output will be resized to the size of m and overwritten. func (x *Nat) SetBytes(b []byte, m *Modulus) (*Nat, error) { if err := x.setBytes(b, m); err != nil { return nil, err } if x.cmpGeq(m.nat) == yes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func.go
base.ErrorfAt(pos, 0, "internal/abi.FuncPC%s does not accept func expression, which is ABIInternal", wantABI) } var e Node = NewUnaryExpr(pos, OIDATA, n) e.SetType(types.Types[types.TUINTPTR].PtrTo()) e.SetTypecheck(1) e = NewStarExpr(pos, e) e.SetType(types.Types[types.TUINTPTR]) e.SetTypecheck(1) return e } // DeclareParams creates Names for all of the parameters in fn's
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0)