Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 256 for MASK (0.28 sec)

  1. src/math/rand/v2/rand.go

    // uint64n is the no-bounds-checks version of Uint64N.
    func (r *Rand) uint64n(n uint64) uint64 {
    	if is32bit && uint64(uint32(n)) == n {
    		return uint64(r.uint32n(uint32(n)))
    	}
    	if n&(n-1) == 0 { // n is power of two, can mask
    		return r.Uint64() & (n - 1)
    	}
    
    	// Suppose we have a uint64 x uniform in the range [0,2⁶⁴)
    	// and want to reduce it to the range [0,n) preserving exact uniformity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/runtime/symtab.go

    	// Return off == ^uint32(0) ? 0 : f.datap.gofunc + uintptr(off), but without branches.
    	// The compiler calculates mask on most architectures using conditional assignment.
    	var mask uintptr
    	if off == ^uint32(0) {
    		mask = 1
    	}
    	mask--
    	raw := base + uintptr(off)
    	return unsafe.Pointer(raw & mask)
    }
    
    // step advances to the next pc, value pair in the encoded table.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/UnsignedLongs.java

          if ((radix & (radix - 1)) == 0) {
            // Radix is a power of two so we can avoid division.
            int shift = Integer.numberOfTrailingZeros(radix);
            int mask = radix - 1;
            do {
              buf[--i] = Character.forDigit(((int) x) & mask, radix);
              x >>>= shift;
            } while (x != 0);
          } else {
            // Separate off the last digit using unsigned division. That will leave
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

          if ((radix & (radix - 1)) == 0) {
            // Radix is a power of two so we can avoid division.
            int shift = Integer.numberOfTrailingZeros(radix);
            int mask = radix - 1;
            do {
              buf[--i] = Character.forDigit(((int) x) & mask, radix);
              x >>>= shift;
            } while (x != 0);
          } else {
            // Separate off the last digit using unsigned division. That will leave
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/math/big/nat.go

    		bitLengthOfMSW = _W
    	}
    	mask := Word((1 << bitLengthOfMSW) - 1)
    
    	for {
    		switch _W {
    		case 32:
    			for i := range z {
    				z[i] = Word(rand.Uint32())
    			}
    		case 64:
    			for i := range z {
    				z[i] = Word(rand.Uint32()) | Word(rand.Uint32())<<32
    			}
    		default:
    			panic("unknown word size")
    		}
    		z[len(limit)-1] &= mask
    		if z.cmp(limit) < 0 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/cni-watcher.go

    	var podIps []netip.Addr
    	for _, configuredPodIPs := range addCmd.IPs {
    		// net.ip is implicitly convertible to netip as slice
    		ip, _ := netip.AddrFromSlice(configuredPodIPs.Address.IP)
    		// We ignore the mask of the IPNet - it's fine if the IPNet defines
    		// a block grant of addresses, we just need one for checking routes.
    		podIps = append(podIps, ip)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

        private final int mask;
    
        SubSet(ImmutableMap<E, Integer> inputSet, int mask) {
          this.inputSet = inputSet;
          this.mask = mask;
        }
    
        @Override
        public Iterator<E> iterator() {
          return new UnmodifiableIterator<E>() {
            final ImmutableList<E> elements = inputSet.keySet().asList();
            int remainingSetBits = mask;
    
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  8. src/runtime/os_windows.go

    }
    
    func getproccount() int32 {
    	var mask, sysmask uintptr
    	ret := stdcall3(_GetProcessAffinityMask, currentProcess, uintptr(unsafe.Pointer(&mask)), uintptr(unsafe.Pointer(&sysmask)))
    	if ret != 0 {
    		n := 0
    		maskbits := int(unsafe.Sizeof(mask) * 8)
    		for i := 0; i < maskbits; i++ {
    			if mask&(1<<uint(i)) != 0 {
    				n++
    			}
    		}
    		if n != 0 {
    			return int32(n)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  9. src/crypto/x509/verify.go

    }
    
    func matchIPConstraint(ip net.IP, constraint *net.IPNet) (bool, error) {
    	if len(ip) != len(constraint.IP) {
    		return false, nil
    	}
    
    	for i := range ip {
    		if mask := constraint.Mask[i]; ip[i]&mask != constraint.IP[i]&mask {
    			return false, nil
    		}
    	}
    
    	return true, nil
    }
    
    func matchDomainConstraint(domain, constraint string) (bool, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	Quiesceowner [8]byte
    	_            [38]byte
    }
    
    type EpollEvent struct {
    	Events uint32
    	_      int32
    	Fd     int32
    	Pad    int32
    }
    
    type InotifyEvent struct {
    	Wd     int32
    	Mask   uint32
    	Cookie uint32
    	Len    uint32
    	Name   string
    }
    
    const (
    	SizeofInotifyEvent = 0x10
    )
    
    type ConsMsg2 struct {
    	Cm2Format       uint16
    	Cm2R1           uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top