Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 523 for MASK (0.04 sec)

  1. src/net/interface_solaris.go

    	var ifat []Addr
    	for _, a := range as {
    		var ip IP
    		var mask IPMask
    		switch a := a.(type) {
    		case *lif.Inet4Addr:
    			ip = IPv4(a.IP[0], a.IP[1], a.IP[2], a.IP[3])
    			mask = CIDRMask(a.PrefixLen, 8*IPv4len)
    		case *lif.Inet6Addr:
    			ip = make(IP, IPv6len)
    			copy(ip, a.IP[:])
    			mask = CIDRMask(a.PrefixLen, 8*IPv6len)
    		}
    		ifat = append(ifat, &IPNet{IP: ip, Mask: mask})
    	}
    	return ifat, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    static void segvHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigset_t mask;
    	int i;
    
    	// Call an arbitrary function that requires the stack to be properly aligned.
    	callWithVarargs("dummy arg", 3.1415);
    
    	if (sigemptyset(&mask) < 0) {
    		die("sigemptyset");
    	}
    	if (sigaddset(&mask, SIGSEGV) < 0) {
    		die("sigaddset");
    	}
    	i = sigprocmask(SIG_UNBLOCK, &mask, NULL);
    	if (i != 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/devicemanager/topology_hints.go

    	bitmask.IterateBitMasks(m.numaNodes, func(mask bitmask.BitMask) {
    		// First, update minAffinitySize for the current request size.
    		devicesInMask := 0
    		for _, device := range m.allDevices[resource] {
    			if mask.AnySet(m.getNUMANodeIds(device.Topology)) {
    				devicesInMask++
    			}
    		}
    		if devicesInMask >= request && mask.Count() < minAffinitySize {
    			minAffinitySize = mask.Count()
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/constants/constants_test.go

    		expectedErr                 bool
    	}{
    		{
    			name:        "subnet mask 24",
    			svcSubnet:   "10.96.0.12/24",
    			expectedIP:  "10.96.0.1",
    			expectedErr: false,
    		},
    		{
    			name:        "subnet mask 12",
    			svcSubnet:   "10.96.0.0/12",
    			expectedIP:  "10.96.0.1",
    			expectedErr: false,
    		},
    		{
    			name:        "subnet mask 26",
    			svcSubnet:   "10.87.116.64/26",
    			expectedIP:  "10.87.116.65",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 03:26:36 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. src/image/draw/draw_test.go

    	// Since golden is a newly allocated image, we don't have to check if the
    	// input source and mask images and the output golden image overlap.
    	b := dst.Bounds()
    	sb := src.Bounds()
    	mb := image.Rect(-1e9, -1e9, 1e9, 1e9)
    	if mask != nil {
    		mb = mask.Bounds()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. src/image/draw/draw.go

    // the same amount as the change in r.Min.
    func clip(dst Image, r *image.Rectangle, src image.Image, sp *image.Point, mask image.Image, mp *image.Point) {
    	orig := r.Min
    	*r = r.Intersect(dst.Bounds())
    	*r = r.Intersect(src.Bounds().Add(orig.Sub(*sp)))
    	if mask != nil {
    		*r = r.Intersect(mask.Bounds().Add(orig.Sub(*mp)))
    	}
    	dx := r.Min.X - orig.X
    	dy := r.Min.Y - orig.Y
    	if dx == 0 && dy == 0 {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  7. src/runtime/os_freebsd.go

    	if maskSize < goarch.PtrSize {
    		maskSize = goarch.PtrSize
    	}
    	if maskSize > len(mask) {
    		maskSize = len(mask)
    	}
    
    	if cpuset_getaffinity(_CPU_LEVEL_WHICH, _CPU_WHICH_PID, _CPU_CURRENT_PID,
    		maskSize, (*byte)(unsafe.Pointer(&mask[0]))) != 0 {
    		return 1
    	}
    	n := int32(0)
    	for _, v := range mask[:maskSize] {
    		for v != 0 {
    			n += int32(v & 1)
    			v >>= 1
    		}
    	}
    	if n == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. src/math/bits.go

    func IsNaN(f float64) (is bool) {
    	// IEEE 754 says that only NaNs satisfy f != f.
    	// To avoid the floating-point hardware, could use:
    	//	x := Float64bits(f);
    	//	return uint32(x>>shift)&mask == mask && x != uvinf && x != uvneginf
    	return f != f
    }
    
    // IsInf reports whether f is an infinity, according to sign.
    // If sign > 0, IsInf reports whether f is positive infinity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. internal/event/event.go

    	S3                Metadata          `json:"s3"`
    	Source            Source            `json:"source"`
    	Type              madmin.TraceType  `json:"-"`
    }
    
    // Mask returns the type as mask.
    func (e Event) Mask() uint64 {
    	return e.EventName.Mask()
    }
    
    // Log represents event information for some event targets.
    type Log struct {
    	EventName Name
    	Key       string
    	Records   []Event
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

        TYPE_DISALLOWED -> TYPE_DISALLOWED
    
        else -> error("unexpected type: $type")
      }
    }
    
    internal infix fun Byte.and(mask: Int): Int = toInt() and mask
    
    internal infix fun Short.and(mask: Int): Int = toInt() and mask
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top