Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for Precompute (0.2 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

      void pollAndAdd(int reps) {
        for (int i = 0; i < reps; i++) {
          // TODO(kevinb): precompute random #s?
          queue.add(queue.poll() ^ random.nextInt());
        }
      }
    
      @Benchmark
      void populate(int reps) {
        for (int i = 0; i < reps; i++) {
          queue.clear();
          for (int j = 0; j < size; j++) {
            // TODO(kevinb): precompute random #s?
            queue.add(random.nextInt());
          }
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. src/crypto/x509/pkcs1.go

    func MarshalPKCS1PrivateKey(key *rsa.PrivateKey) []byte {
    	key.Precompute()
    
    	version := 0
    	if len(key.Primes) > 2 {
    		version = 1
    	}
    
    	priv := pkcs1PrivateKey{
    		Version: version,
    		N:       key.N,
    		E:       key.PublicKey.E,
    		D:       key.D,
    		P:       key.Primes[0],
    		Q:       key.Primes[1],
    		Dp:      key.Precomputed.Dp,
    		Dq:      key.Precomputed.Dq,
    		Qinv:    key.Precomputed.Qinv,
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa.go

    	// Fill in the backwards-compatibility *big.Int values.
    	if priv.Precomputed.Dp != nil {
    		return
    	}
    
    	priv.Precomputed.Dp = new(big.Int).Sub(priv.Primes[0], bigOne)
    	priv.Precomputed.Dp.Mod(priv.D, priv.Precomputed.Dp)
    
    	priv.Precomputed.Dq = new(big.Int).Sub(priv.Primes[1], bigOne)
    	priv.Precomputed.Dq.Mod(priv.D, priv.Precomputed.Dq)
    
    	priv.Precomputed.Qinv = new(big.Int).ModInverse(priv.Primes[1], priv.Primes[0])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/crypto/cipher/cfb.go

    		panic("crypto/cipher: invalid buffer overlap")
    	}
    	for len(src) > 0 {
    		if x.outUsed == len(x.out) {
    			x.b.Encrypt(x.out, x.next)
    			x.outUsed = 0
    		}
    
    		if x.decrypt {
    			// We can precompute a larger segment of the
    			// keystream on decryption. This will allow
    			// larger batches for xor, and we should be
    			// able to match CTR/OFB performance.
    			copy(x.next[x.outUsed:], src)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. pkg/config/analysis/analyzers/virtualservice/destinationrules.go

    			gvk.VirtualService,
    			gvk.DestinationRule,
    		},
    	}
    }
    
    // Analyze implements Analyzer
    func (d *DestinationRuleAnalyzer) Analyze(ctx analysis.Context) {
    	// To avoid repeated iteration, precompute the set of existing destination host+subset combinations
    	destHostsAndSubsets := initDestHostsAndSubsets(ctx)
    
    	ctx.ForEach(gvk.VirtualService, func(r *resource.Instance) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 15:18:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

      bool scheduled_everything = true;
      // Unscheduled operations and their respective partitions.
      llvm::DenseMap<Operation *, int> unscheduled_ops;
    
      // Mark all operations as unscheduled and precompute the partition
      // to which they belong.
      bool prev_part = false;
      for (Operation &op : ops) {
        ++num_all_ops;
        const bool part = partition(&op);
        num_part_ops += part;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. src/hash/crc32/crc32_amd64.go

    	//
    	// The castagnoliSSE42Triple function can compute CRC(I, A), CRC(0, B),
    	// and CRC(0, C) efficiently.  We just need to find a way to quickly compute
    	// CRC(uvwx, O) given a 4-byte initial value uvwx. We can precompute these
    	// values; since we can't have a 32-bit table, we break it up into four
    	// 8-bit tables:
    	//
    	//    CRC(uvwx, O) = CRC(u000, O) xor
    	//                   CRC(0v00, O) xor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/virtualservice/destinationhosts.go

    			gvk.ServiceEntry,
    			gvk.VirtualService,
    			gvk.Service,
    		},
    	}
    }
    
    // Analyze implements Analyzer
    func (a *DestinationHostAnalyzer) Analyze(ctx analysis.Context) {
    	// Precompute the set of service entry hosts that exist (there can be more than one defined per ServiceEntry CRD)
    	serviceEntryHosts := util.InitServiceEntryHostMap(ctx)
    	virtualServiceDestinations := initVirtualServiceDestinations(ctx)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 15:18:05 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. src/encoding/json/stream.go

    func (enc *Encoder) SetEscapeHTML(on bool) {
    	enc.escapeHTML = on
    }
    
    // RawMessage is a raw encoded JSON value.
    // It implements [Marshaler] and [Unmarshaler] and can
    // be used to delay JSON decoding or precompute a JSON encoding.
    type RawMessage []byte
    
    // MarshalJSON returns m as the JSON encoding of m.
    func (m RawMessage) MarshalJSON() ([]byte, error) {
    	if m == nil {
    		return []byte("null"), nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pilot/pkg/xds/filters/filters.go

    				}},
    			}),
    		},
    	}
    )
    
    // Router is used a bunch, so its worth precomputing even though we have a few options.
    // Since there are only 4 possible options, just precompute them all
    var routers = func() map[RouterFilterContext]*hcm.HttpFilter {
    	res := map[RouterFilterContext]*hcm.HttpFilter{}
    	for _, startSpan := range []bool{true, false} {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 09 09:24:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top