Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for Log2 (0.03 sec)

  1. src/crypto/ecdsa/ecdsa.go

    // SEC 1, Section 4.1.3, point 5 and Section 4.1.4, point 3.
    func hashToNat[Point nistPoint[Point]](c *nistCurve[Point], e *bigmod.Nat, hash []byte) {
    	// ECDSA asks us to take the left-most log2(N) bits of hash, and use them as
    	// an integer modulo N. This is the absolute worst of all worlds: we still
    	// have to reduce, because the result might still overflow N, but to take
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. pkg/controller/controller_utils.go

    func logarithmicRankDiff(t1, t2, now metav1.Time) int64 {
    	d1 := now.Sub(t1.Time)
    	d2 := now.Sub(t2.Time)
    	r1 := int64(-1)
    	r2 := int64(-1)
    	if d1 > 0 {
    		r1 = int64(math.Log2(float64(d1)))
    	}
    	if d2 > 0 {
    		r2 = int64(math.Log2(float64(d2)))
    	}
    	return r1 - r2
    }
    
    func podReadyTime(pod *v1.Pod) *metav1.Time {
    	if podutil.IsPodReady(pod) {
    		for _, c := range pod.Status.Conditions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  3. src/cmd/link/internal/riscv64/asm.go

    	//      l[w|d] t3, %pcrel_lo(1b)(t2)    # _dl_runtime_resolve
    	//      addi   t1, t1, -(hdr size + 12) # shifted .got.plt offset
    	//      addi   t0, t2, %pcrel_lo(1b)    # &.got.plt
    	//      srli   t1, t1, log2(16/PTRSIZE) # .got.plt offset
    	//      l[w|d] t0, PTRSIZE(t0)          # link map
    	//      jr     t3
    
    	plt.AddSymRef(ctxt.Arch, gotplt.Sym(), 0, objabi.R_RISCV_PCREL_HI20, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. src/crypto/rsa/rsa.go

    		//
    		// If α < 1/2 (which can happen for nprimes > 2), we need to
    		// shift todo to compensate for lost bits: the mean value of 0.11...
    		// is 7/8, so todo + shift - nprimes * log2(7/8) ~= bits - 1/2
    		// will give good results.
    		if nprimes >= 7 {
    			todo += (nprimes - 2) / 5
    		}
    		for i := 0; i < nprimes; i++ {
    			var err error
    			primes[i], err = rand.Prime(random, todo/(nprimes-i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSet.java

         * if fewer consecutive positions are filled; see that method for details.)
         */
        static int maxRunBeforeFallback(int tableSize) {
          return MAX_RUN_MULTIPLIER * IntMath.log2(tableSize, RoundingMode.UNNECESSARY);
        }
      }
    
      /**
       * SetBuilderImpl version that uses a JDK HashSet, which has built in hash flooding protection.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

        int num_bits = qtype.getStorageTypeIntegralWidth();
        if (num_bits == 8) {
          // If storage is 8-bit, trained num bits may be less than 8 so check here.
          num_bits =
              static_cast<int>(std::ceil(std::log2(qtype.getStorageTypeMax())));
        }
        // This is a positive value, and will be applied on zero points and fixed
        // point ranges.
        int64_t offset =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/tests/go122-annotations-stress.test

    String id=21
    	data="start trace"
    String id=22
    	data="type2"
    String id=23
    	data="type3"
    String id=24
    	data="log"
    String id=25
    	data="before do"
    String id=26
    	data="do"
    String id=27
    	data="log2"
    String id=28
    	data="do"
    String id=29
    	data="fanout"
    String id=30
    	data="region3"
    String id=31
    	data="region2"
    String id=32
    	data="fanout region3"
    String id=33
    	data="region0"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  8. src/runtime/sys_linux_amd64.s

    	CMPQ	R13, $0    // m
    	JEQ	nog2
    	CMPQ	R9, $0    // g
    	JEQ	nog2
    
    	// Initialize m->procid to Linux tid
    	MOVL	$SYS_gettid, AX
    	SYSCALL
    	MOVQ	AX, m_procid(R13)
    
    	// In child, set up new stack
    	get_tls(CX)
    	MOVQ	R13, g_m(R9)
    	MOVQ	R9, g(CX)
    	MOVQ	R9, R14 // set g register
    	CALL	runtime·stackcheck(SB)
    
    nog2:
    	// Call fn. This is the PC of an ABI0 function.
    	CALL	R12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 15.7K bytes
    - Viewed (0)
Back to top