Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,081 for nbits (0.04 sec)

  1. pkg/registry/core/service/allocator/utils.go

    limitations under the License.
    */
    
    package allocator
    
    import (
    	"math/big"
    	"math/bits"
    )
    
    // countBits returns the number of set bits in n
    func countBits(n *big.Int) int {
    	var count int = 0
    	for _, w := range n.Bits() {
    		count += bits.OnesCount64(uint64(w))
    	}
    	return count
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 01 15:09:56 UTC 2021
    - 816 bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/doc.go

    // The SHA3-x (x equals 224, 256, 384, or 512) functions have a security
    // strength against preimage attacks of x bits. Since they only produce "x"
    // bits of output, their collision-resistance is only "x/2" bits.
    //
    // The SHAKE-256 and -128 functions have a generic security strength of 256 and
    // 128 bits against all attacks, provided that at least 2x bits of their output
    // is used.  Requesting more than 64 or 32 bytes of output, respectively, does
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/crypto/internal/bigmod/nat.go

    	_ = x[len(z)-1] // bounds check elimination hint
    	for i := range z {
    		hi, lo := bits.Mul(x[i], y)
    		lo, c := bits.Add(lo, z[i], 0)
    		// We use bits.Add with zero to get an add-with-carry instruction that
    		// absorbs the carry from the previous bits.Add.
    		hi, _ = bits.Add(hi, 0, c)
    		lo, c = bits.Add(lo, carry, 0)
    		hi, _ = bits.Add(hi, 0, c)
    		carry = hi
    		z[i] = lo
    	}
    	return carry
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/BloomFilter.java

        /**
         * Sets {@code numHashFunctions} bits of the given bit array, by hashing a user element.
         *
         * <p>Returns whether any bits changed as a result of this operation.
         */
        <T extends @Nullable Object> boolean put(
            @ParametricNullness T object,
            Funnel<? super T> funnel,
            int numHashFunctions,
            LockFreeBitArray bits);
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. src/runtime/mksizeclasses.go

    	}
    	fmt.Fprintf(w, "\n")
    
    	fmt.Fprintf(w, "// %-9s  %-4s  %-12s\n", "alignment", "bits", "min obj size")
    	for bits, size := range minAligns {
    		if size == 0 {
    			break
    		}
    		if bits+1 < len(minAligns) && size == minAligns[bits+1] {
    			continue
    		}
    		fmt.Fprintf(w, "// %9d  %4d  %12d\n", 1<<bits, bits, size)
    	}
    	fmt.Fprintf(w, "\n")
    }
    
    func maxObjsPerSpan(classes []class) int {
    	most := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. src/math/cmplx/tan.go

    	// Multiply mantissa by the digits and extract the upper two digits (hi, lo).
    	z2hi, _ := bits.Mul64(z2, ix)
    	z1hi, z1lo := bits.Mul64(z1, ix)
    	z0lo := z0 * ix
    	lo, c := bits.Add64(z1lo, z2hi, 0)
    	hi, _ := bits.Add64(z0lo, z1hi, c)
    	// Find the magnitude of the fraction.
    	lz := uint(bits.LeadingZeros64(hi))
    	e := uint64(bias - (lz + 1))
    	// Clear implicit mantissa bit and shift into place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ir/mini.go

    )
    
    func (n *miniNode) Typecheck() uint8 { return n.bits.get2(miniTypecheckShift) }
    func (n *miniNode) SetTypecheck(x uint8) {
    	if x > 2 {
    		panic(fmt.Sprintf("cannot SetTypecheck %d", x))
    	}
    	n.bits.set2(miniTypecheckShift, x)
    }
    
    func (n *miniNode) Walked() bool     { return n.bits&miniWalked != 0 }
    func (n *miniNode) SetWalked(x bool) { n.bits.set(miniWalked, x) }
    
    // Empty, immutable graph structure.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 22:09:44 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/field/fe_generic.go

    // license that can be found in the LICENSE file.
    
    package field
    
    import "math/bits"
    
    // uint128 holds a 128-bit number as two 64-bit limbs, for use with the
    // bits.Mul64 and bits.Add64 intrinsics.
    type uint128 struct {
    	lo, hi uint64
    }
    
    // mul64 returns a * b.
    func mul64(a, b uint64) uint128 {
    	hi, lo := bits.Mul64(a, b)
    	return uint128{lo, hi}
    }
    
    // addMul64 returns v + a * b.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/intrinsics_test.go

    package test
    
    import (
    	"math/bits"
    	"testing"
    )
    
    func TestBitLen64(t *testing.T) {
    	for i := 0; i <= 64; i++ {
    		got := bits.Len64(1 << i)
    		want := i + 1
    		if want == 65 {
    			want = 0
    		}
    		if got != want {
    			t.Errorf("Len64(1<<%d) = %d, want %d", i, got, want)
    		}
    	}
    }
    
    func TestBitLen32(t *testing.T) {
    	for i := 0; i <= 32; i++ {
    		got := bits.Len32(1 << i)
    		want := i + 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 18:33:02 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedLong.java

       * interpreted as an unsigned 64-bit value. Specifically, the sign bit of {@code bits} is
       * interpreted as a normal bit, and all other bits are treated as usual.
       *
       * <p>If the argument is nonnegative, the returned result will be equal to {@code bits},
       * otherwise, the result will be equal to {@code 2^64 + bits}.
       *
       * <p>To represent decimal constants less than {@code 2^63}, consider {@link #valueOf(long)}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
Back to top