Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setTypes (0.23 sec)

  1. cmd/storage-datatypes_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalBaseOptions(b *testing.B) {
    	v := BaseOptions{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 62.6K bytes
    - Viewed (0)
  2. src/math/big/int_test.go

    	i := 0
    	for i < len(z) && z[i] == 0 {
    		i++
    	}
    
    	return z[i:]
    }
    
    func checkMul(a, b []byte) bool {
    	var x, y, z1 Int
    	x.SetBytes(a)
    	y.SetBytes(b)
    	z1.Mul(&x, &y)
    
    	var z2 Int
    	z2.SetBytes(mulBytes(a, b))
    
    	return z1.Cmp(&z2) == 0
    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    				// now.
    				su := l.MakeSymbolUpdater(symIdx)
    				if l.SymExtname(symIdx) != "" && l.SymDynimplib(symIdx) != "" && !(l.AttrCgoExportStatic(symIdx) || l.AttrCgoExportDynamic(symIdx)) {
    					su.SetType(sym.SDYNIMPORT)
    				} else {
    					su.SetType(0)
    				}
    			}
    		}
    	}
    }
    
    // Set up flags and special symbols depending on the platform build mode.
    // This version works with loader.Loader.
    func (ctxt *Link) linksetup() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loader/loader.go

    func (rel Reloc) Weak() bool                 { return objabi.RelocType(rel.Reloc.Type())&objabi.R_WEAK != 0 }
    func (rel Reloc) SetType(t objabi.RelocType) { rel.Reloc.SetType(uint16(t)) }
    func (rel Reloc) Sym() Sym                   { return rel.l.resolve(rel.r, rel.Reloc.Sym()) }
    func (rel Reloc) SetSym(s Sym)               { rel.Reloc.SetSym(goobj.SymRef{PkgIdx: 0, SymIdx: uint32(s)}) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  5. src/crypto/tls/tls_test.go

    				panic(fmt.Errorf("handshake: %v", err))
    			}
    			if _, err := io.CopyBuffer(srv, srv, buf); err != nil {
    				panic(fmt.Errorf("copy buffer: %v", err))
    			}
    		}
    	}()
    
    	b.SetBytes(totalBytes)
    	clientConfig := testConfig.Clone()
    	clientConfig.CipherSuites = nil // the defaults may prefer faster ciphers
    	clientConfig.DynamicRecordSizingDisabled = dynamicRecordSizingDisabled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

      // return types contain a `DT_VARIANT`, change it to the unranked type
      // derived from the corresponding argument.
      rewriter.modifyOpInPlace(func, [&] {
        func.setType(FunctionType::get(func.getContext(), updated_argument_types,
                                       updated_result_types));
      });
      Region &entry = func.getRegion();
      TypeConverter::SignatureConversion signature_conversion(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  7. src/math/rand/v2/chacha8_test.go

    	var t uint64
    	for n := b.N; n > 0; n-- {
    		t += p.Uint64()
    	}
    	Sink = t
    }
    
    func BenchmarkChaCha8Read(b *testing.B) {
    	p := NewChaCha8([32]byte{1, 2, 3, 4, 5})
    	buf := make([]byte, 32)
    	b.SetBytes(32)
    	var t uint8
    	for n := b.N; n > 0; n-- {
    		p.Read(buf)
    		t += buf[0]
    	}
    	Sink = uint64(t)
    }
    
    // Golden output test to make sure algorithm never changes,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 55K bytes
    - Viewed (0)
Back to top