Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for setBig (0.16 sec)

  1. src/crypto/internal/bigmod/nat.go

    func (x *Nat) set(y *Nat) *Nat {
    	x.reset(len(y.limbs))
    	copy(x.limbs, y.limbs)
    	return x
    }
    
    // setBig assigns x = n, optionally resizing n to the appropriate size.
    //
    // The announced length of x is set based on the actual bit size of the input,
    // ignoring leading zeroes.
    func (x *Nat) setBig(n *big.Int) *Nat {
    	limbs := n.Bits()
    	x.reset(len(limbs))
    	for i := range limbs {
    		x.limbs[i] = uint(limbs[i])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/runtime/signal_unix.go

    		// it may hit stack split that is not expected here.
    		if gp != nil {
    			setg(nil)
    		}
    		badsignal(uintptr(sig), c)
    		// Restore g
    		if gp != nil {
    			setg(gp)
    		}
    		return
    	}
    
    	setg(gp.m.gsignal)
    
    	// If some non-Go code called sigaltstack, adjust.
    	var gsignalStack gsignalStack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            assertTrue(ZERO.setBit(result).compareTo(x) <= 0);
            assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0);
          }
        }
      }
    
      public void testLog2Ceiling() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          for (RoundingMode mode : asList(CEILING, UP)) {
            int result = BigIntegerMath.log2(x, mode);
            assertTrue(ZERO.setBit(result).compareTo(x) >= 0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. src/math/big/bits_test.go

    			min = b
    		}
    	}
    
    	// create bit pattern
    	x := NewInt(0)
    	for _, b := range bits {
    		badj := b - min
    		// propagate carry if necessary
    		for x.Bit(badj) != 0 {
    			x.SetBit(x, badj, 0)
    			badj++
    		}
    		x.SetBit(x, badj, 1)
    	}
    
    	// create corresponding float
    	z := new(Float).SetInt(x) // normalized
    	if e := int64(z.exp) + int64(min); MinExp <= e && e <= MaxExp {
    		z.exp = int32(e)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/runtime/export_windows_test.go

    }
    
    type ContextStub struct {
    	context
    }
    
    func (c ContextStub) GetPC() uintptr {
    	return c.ip()
    }
    
    func NewContextStub() *ContextStub {
    	var ctx context
    	ctx.set_ip(getcallerpc())
    	ctx.set_sp(getcallersp())
    	ctx.set_fp(getcallerfp())
    	return &ContextStub{ctx}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/copyelim.go

    	// sure that we don't end up doing O(n^2) work
    	// for a chain of n copies.
    	for v != w {
    		x := v.Args[0]
    		v.SetArg(0, w)
    		v = x
    	}
    	return w
    }
    
    // copyelimValue ensures that no args of v are copies.
    func copyelimValue(v *Value) {
    	for i, a := range v.Args {
    		if a.Op == OpCopy {
    			v.SetArg(i, copySource(a))
    		}
    	}
    }
    
    // phielim eliminates redundant phi values from f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. docs/metrics/v3.md

    | `minio_cluster_erasure_set_write_quorum`         | `gauge` | Write quorum for the erasure set in a pool                                        | `pool_id,set_id` |
    | `minio_cluster_erasure_set_online_drives_count`  | `gauge` | Count of online drives in the erasure set in a pool                               | `pool_id,set_id` |
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 40.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ConfigurableFileTreeCodec.kt

        }
    
        override suspend fun ReadContext.decode(): ConfigurableFileTree {
            val dir = readFile()
            val patterns = read() as PatternSet
            val tree = fileCollectionFactory.fileTree()
            tree.setDir(dir)
            // TODO - read patterns directly into tree
            tree.patterns.copyFrom(patterns)
            return tree
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/math/big/int_test.go

    	}
    }
    
    func BenchmarkBitset(b *testing.B) {
    	z := new(Int)
    	z.SetBit(z, 512, 1)
    	b.ResetTimer()
    	for i := b.N - 1; i >= 0; i-- {
    		z.SetBit(z, i&512, 1)
    	}
    }
    
    func BenchmarkBitsetNeg(b *testing.B) {
    	z := NewInt(-1)
    	z.SetBit(z, 512, 0)
    	b.ResetTimer()
    	for i := b.N - 1; i >= 0; i-- {
    		z.SetBit(z, i&512, 0)
    	}
    }
    
    func BenchmarkBitsetOrig(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  10. cmd/metrics-v3-cluster-erasure-set.go

    	erasureSetWriteTolerance     = "write_tolerance"
    	erasureSetReadHealth         = "read_health"
    	erasureSetWriteHealth        = "write_health"
    )
    
    const (
    	poolIDL = "pool_id"
    	setIDL  = "set_id"
    )
    
    var (
    	erasureSetOverallWriteQuorumMD = NewGaugeMD(erasureSetOverallWriteQuorum,
    		"Overall write quorum across pools and sets")
    	erasureSetOverallHealthMD = NewGaugeMD(erasureSetOverallHealth,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 14 07:25:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top