Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for newBar (0.38 sec)

  1. src/runtime/slice.go

    		// gives a smooth-ish transition between the two.
    		newcap += (newcap + 3*threshold) >> 2
    
    		// We need to check `newcap >= newLen` and whether `newcap` overflowed.
    		// newLen is guaranteed to be larger than zero, hence
    		// when newcap overflows then `uint(newcap) > uint(newLen)`.
    		// This allows to check for both with the same comparison.
    		if uint(newcap) >= uint(newLen) {
    			break
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/ureader.go

    				methods := make([]*types.Func, iface.NumExplicitMethods())
    				for i := range methods {
    					fn := iface.ExplicitMethod(i)
    					sig := fn.Type().(*types.Signature)
    
    					recv := types.NewVar(fn.Pos(), fn.Pkg(), "", named)
    					methods[i] = types.NewFunc(fn.Pos(), fn.Pkg(), fn.Name(), types.NewSignature(recv, sig.Params(), sig.Results(), sig.Variadic()))
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

          auto quantize_output = quantize_op.getOutput();
          auto quantize_type = quantize_output.getType();
          input_types.push_back(quantize_type);
          auto new_arg = bb.addArgument(quantize_type, loc);
          quantize_output.replaceAllUsesWith(new_arg);
          quantize_op.erase();
          arg.dropAllUses();
          bb.eraseArgument(0);
        };
    
        // This is looking for a pattern: arg -> tfl.quantize
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/check.go

    	if m := check.Types; m != nil {
    		for {
    			tv := m[x]
    			assert(tv.Type != nil) // should have been recorded already
    			pos := x.Pos()
    			tv.Type = NewTuple(
    				NewVar(pos, check.pkg, "", t0),
    				NewVar(pos, check.pkg, "", t1),
    			)
    			m[x] = tv
    			// if x is a parenthesized expression (p.X), update p.X
    			p, _ := x.(*syntax.ParenExpr)
    			if p == nil {
    				break
    			}
    			x = p.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFilePropertyFactory.java

            }
    
            @Override
            public Directory dir(String path) {
                File newDir = fileResolver.resolve(path);
                FileResolver dirResolver = fileResolver.newResolver(newDir);
                return new FixedDirectory(newDir, dirResolver, fileCollectionFactory.withResolver(dirResolver));
            }
    
            @Override
            public FileTree getAsFileTree() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:53:33 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        for (int i = 0; i < params.size(); i++) {
          List<Object> newArgs = Lists.newArrayList(args);
          Object newArg = argGenerators.get(i).generateFresh(params.get(i).getType());
    
          if (newArg == null || Objects.equal(args.get(i), newArg)) {
            if (params.get(i).getType().getRawType().isEnum()) {
              continue; // Nothing better we can do if it's single-value enum
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/iimport.go

    		// completely set up all types in ImportData.
    		r.p.later = append(r.p.later, setConstraintArgs{t: t, constraint: constraint})
    
    	case 'V':
    		typ := r.typ()
    
    		r.declare(types.NewVar(pos, r.currPkg, name, typ))
    
    	default:
    		errorf("unexpected tag: %v", tag)
    	}
    }
    
    func (r *importReader) declare(obj types.Object) {
    	obj.Pkg().Scope().Insert(obj)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. src/go/types/stmt.go

    				// declare new variable
    				name := identName(ident)
    				obj = NewVar(ident.Pos(), check.pkg, name, nil)
    				check.recordDef(ident, obj)
    				// _ variables don't count as new variables
    				if name != "_" {
    					vars = append(vars, obj)
    				}
    			} else {
    				check.errorf(lhs, InvalidSyntaxTree, "cannot declare %s", lhs)
    				obj = NewVar(lhs.Pos(), check.pkg, "_", nil) // dummy variable
    			}
    			assert(obj.typ == nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        for (int i = 0; i < params.size(); i++) {
          List<Object> newArgs = Lists.newArrayList(args);
          Object newArg = argGenerators.get(i).generateFresh(params.get(i).getType());
    
          if (newArg == null || Objects.equal(args.get(i), newArg)) {
            if (params.get(i).getType().getRawType().isEnum()) {
              continue; // Nothing better we can do if it's single-value enum
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. src/crypto/tls/ticket.go

    		return nil, err
    	}
    	key := ticketKeys[0]
    	block, err := aes.NewCipher(key.aesKey[:])
    	if err != nil {
    		return nil, errors.New("tls: failed to create cipher while encrypting ticket: " + err.Error())
    	}
    	cipher.NewCTR(block, iv).XORKeyStream(ciphertext, state)
    
    	mac := hmac.New(sha256.New, key.hmacKey[:])
    	mac.Write(authenticated)
    	mac.Sum(macBytes[:0])
    
    	return encrypted, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top