Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,095 for bitPos (0.15 sec)

  1. src/cmd/compile/internal/ssa/allocators.go

    package ssa
    
    import (
    	"internal/unsafeheader"
    	"math/bits"
    	"sync"
    	"unsafe"
    )
    
    var poolFreeValueSlice [27]sync.Pool
    
    func (c *Cache) allocValueSlice(n int) []*Value {
    	var s []*Value
    	n2 := n
    	if n2 < 32 {
    		n2 = 32
    	}
    	b := bits.Len(uint(n2 - 1))
    	v := poolFreeValueSlice[b-5].Get()
    	if v == nil {
    		s = make([]*Value, 1<<b)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. 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)
  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. 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)
  5. 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)
  6. 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)
  7. src/image/jpeg/writer.go

    // emit emits the least significant nBits bits of bits to the bit-stream.
    // The precondition is bits < 1<<nBits && nBits <= 16.
    func (e *encoder) emit(bits, nBits uint32) {
    	nBits += e.nBits
    	bits <<= 32 - nBits
    	bits |= e.bits
    	for nBits >= 8 {
    		b := uint8(bits >> 24)
    		e.writeByte(b)
    		if b == 0xff {
    			e.writeByte(0x00)
    		}
    		bits <<= 8
    		nBits -= 8
    	}
    	e.bits, e.nBits = bits, nBits
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  8. src/compress/lzw/writer.go

    }
    
    // writeLSB writes the code c for "Least Significant Bits first" data.
    func (w *Writer) writeLSB(c uint32) error {
    	w.bits |= c << w.nBits
    	w.nBits += w.width
    	for w.nBits >= 8 {
    		if err := w.w.WriteByte(uint8(w.bits)); err != nil {
    			return err
    		}
    		w.bits >>= 8
    		w.nBits -= 8
    	}
    	return nil
    }
    
    // writeMSB writes the code c for "Most Significant Bits first" data.
    func (w *Writer) writeMSB(c uint32) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top