Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 505 for bitPos (0.17 sec)

  1. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      // The mask for the sign bit.
      static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
    
      // The mask for the fraction bits.
      static const Bits kFractionBitMask =
        ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
    
      // The mask for the exponent bits.
      static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
    
      // How many ULP's (Units in the Last Place) we want to tolerate when
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  2. src/net/netip/netip.go

    // It does not allocate. Unlike [Addr.Prefix], [PrefixFrom] does not mask
    // off the host bits of ip.
    //
    // If bits is less than zero or greater than ip.BitLen, [Prefix.Bits]
    // will return an invalid value -1.
    func PrefixFrom(ip Addr, bits int) Prefix {
    	var bitsPlusOne uint8
    	if !ip.isZero() && bits >= 0 && bits <= ip.BitLen() {
    		bitsPlusOne = uint8(bits) + 1
    	}
    	return Prefix{
    		ip:          ip.withoutZone(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. src/net/ip.go

    	return p
    }
    
    // CIDRMask returns an [IPMask] consisting of 'ones' 1 bits
    // followed by 0s up to a total length of 'bits' bits.
    // For a mask of this form, CIDRMask is the inverse of [IPMask.Size].
    func CIDRMask(ones, bits int) IPMask {
    	if bits != 8*IPv4len && bits != 8*IPv6len {
    		return nil
    	}
    	if ones < 0 || ones > bits {
    		return nil
    	}
    	l := bits / 8
    	m := make(IPMask, l)
    	n := uint(ones)
    	for i := 0; i < l; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/math/rand/v2/rand.go

    	//
    	// We want to compute
    	// 	hi, lo := bits.Mul64(r.Uint64(), n)
    	// In terms of 32-bit halves, this is:
    	// 	x1:x0 := r.Uint64()
    	// 	0:hi, lo1:lo0 := bits.Mul64(x1:x0, 0:n)
    	// Writing out the multiplication in terms of bits.Mul32 allows
    	// using direct hardware instructions and avoiding
    	// the computations involving these zeros.
    	x := r.Uint64()
    	lo1a, lo0 := bits.Mul32(uint32(x), n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			if prefix.Addr() != test.ip {
    				t.Errorf("IP=%s, want %s", prefix.Addr(), test.ip)
    			}
    			if prefix.Bits() != test.bits {
    				t.Errorf("bits=%d, want %d", prefix.Bits(), test.bits)
    			}
    			for _, ip := range test.contains {
    				if !prefix.Contains(ip) {
    					t.Errorf("does not contain %s", ip)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. src/cmd/internal/objabi/reloctype.go

    	// R_ARM64_LDST8 sets a LD/ST immediate value to bits [11:0] of a local address.
    	R_ARM64_LDST8
    
    	// R_ARM64_LDST16 sets a LD/ST immediate value to bits [11:1] of a local address.
    	R_ARM64_LDST16
    
    	// R_ARM64_LDST32 sets a LD/ST immediate value to bits [11:2] of a local address.
    	R_ARM64_LDST32
    
    	// R_ARM64_LDST64 sets a LD/ST immediate value to bits [11:3] of a local address.
    	R_ARM64_LDST64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * ```
     *  0..63 : Length of the UTF-16 sequence that this range maps to. The offset is b2b3.
     * 64..79 : Offset by a fixed negative offset. The bottom 4 bits of b1 are the top 4 bits of the offset.
     * 80..95 : Offset by a fixed positive offset. The bottom 4 bits of b1 are the top 4 bits of the offset.
     *    119 : Ignored.
     *    120 : Valid.
     *    121 : Disallowed
     *    122 : Mapped inline to the sequence: [b2].
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Apr 02 11:39:58 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/field/fe.go

    		return nil, errors.New("edwards25519: invalid field element input size")
    	}
    
    	// Bits 0:51 (bytes 0:8, bits 0:64, shift 0, mask 51).
    	v.l0 = byteorder.LeUint64(x[0:8])
    	v.l0 &= maskLow51Bits
    	// Bits 51:102 (bytes 6:14, bits 48:112, shift 3, mask 51).
    	v.l1 = byteorder.LeUint64(x[6:14]) >> 3
    	v.l1 &= maskLow51Bits
    	// Bits 102:153 (bytes 12:20, bits 96:160, shift 6, mask 51).
    	v.l2 = byteorder.LeUint64(x[12:20]) >> 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. src/crypto/x509/oid.go

    }
    
    func parseBase128Int(bytes []byte, initOffset int) (ret, offset int, failed bool) {
    	offset = initOffset
    	var ret64 int64
    	for shifted := 0; offset < len(bytes); shifted++ {
    		// 5 * 7 bits per byte == 35 bits of data
    		// Thus the representation is either non-minimal or too large for an int32
    		if shifted == 5 {
    			failed = true
    			return
    		}
    		ret64 <<= 7
    		b := bytes[offset]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. src/index/suffixarray/suffixarray_test.go

    					name = fmt.Sprintf("%dM", size/1e6)
    				}
    				b.Run("size="+name, func(b *testing.B) {
    					for _, bits := range []int{32, 64} {
    						if ^uint(0) == 0xffffffff && bits == 64 {
    							continue
    						}
    						b.Run(fmt.Sprintf("bits=%d", bits), func(b *testing.B) {
    							cleanup := setBits(bits)
    							defer cleanup()
    
    							b.SetBytes(int64(len(data)))
    							b.ReportAllocs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top