Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 153 for MASK (0.04 sec)

  1. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/decode.go

    import (
    	"encoding/binary"
    	"fmt"
    	"log"
    )
    
    const debugDecode = false
    
    const prefixOpcode = 1
    
    // instFormat is a decoding rule for one specific instruction form.
    // an instruction ins matches the rule if ins&Mask == Value
    // DontCare bits should be zero, but the machine might not reject
    // ones in those bits, they are mainly reserved for future expansion
    // of the instruction set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  2. src/net/example_test.go

    }
    
    func ExampleIP_Mask() {
    	ipv4Addr := net.ParseIP("192.0.2.1")
    	// This mask corresponds to a /24 subnet for IPv4.
    	ipv4Mask := net.CIDRMask(24, 32)
    	fmt.Println(ipv4Addr.Mask(ipv4Mask))
    
    	ipv6Addr := net.ParseIP("2001:db8:a0b:12f0::1")
    	// This mask corresponds to a /32 subnet for IPv6.
    	ipv6Mask := net.CIDRMask(32, 128)
    	fmt.Println(ipv6Addr.Mask(ipv6Mask))
    
    	// Output:
    	// 192.0.2.0
    	// 2001:db8::
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 13 16:36:59 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  3. src/os/signal/signal.go

    type stopping struct {
    	c chan<- os.Signal
    	h *handler
    }
    
    type handler struct {
    	mask [(numSig + 31) / 32]uint32
    }
    
    func (h *handler) want(sig int) bool {
    	return (h.mask[sig/32]>>uint(sig&31))&1 != 0
    }
    
    func (h *handler) set(sig int) {
    	h.mask[sig/32] |= 1 << uint(sig&31)
    }
    
    func (h *handler) clear(sig int) {
    	h.mask[sig/32] &^= 1 << uint(sig&31)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/simple/DefaultCompositeExclude.java

        DefaultCompositeExclude(ImmutableSet<ExcludeSpec> components) {
            this.components = components;
            this.size = components.size();
            this.hashCode = (31 * components.hashCode() + this.size) ^ mask();
        }
    
        abstract int mask();
    
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/runtime/os_openbsd.go

    //
    //go:nosplit
    func setSignalstackSP(s *stackt, sp uintptr) {
    	s.ss_sp = sp
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    func sigaddset(mask *sigset, i int) {
    	*mask |= 1 << (uint32(i) - 1)
    }
    
    func sigdelset(mask *sigset, i int) {
    	*mask &^= 1 << (uint32(i) - 1)
    }
    
    //go:nosplit
    func (c *sigctxt) fixsigcode(sig uint32) {
    }
    
    func setProcessCPUProfiler(hz int32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. cmd/listen-notification-handlers.go

    	}
    
    	pattern := event.NewPattern(prefix, suffix)
    
    	var eventNames []event.Name
    	var mask pubsub.Mask
    	for _, s := range values[peerRESTListenEvents] {
    		eventName, err := event.ParseName(s)
    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    		mask.MergeMaskable(eventName)
    		eventNames = append(eventNames, eventName)
    	}
    
    	if bucketName != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/go/printer/testdata/comments2.golden

    	_ = yyyyyyyyyyyyyyyy			/* comment - should be aligned */
    
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	// comment
    	_ = yyyyyyyyyyyyyyyy			// comment - should be aligned
    
    	// test case from issue
    label:
    	mask := uint64(1)<<c - 1		// Allocation mask
    	used := atomic.LoadUint64(&h.used)	// Current allocations
    }
    
    // Test cases for issue 18782
    var _ = [][]int{
    	/*       a, b, c, d, e */
    	/* a */ {0, 0, 0, 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/image/draw/clip_test.go

    		image.Rectangle{},
    		image.Pt(44, 33),
    		image.Point{},
    		true,
    		image.Rect(0, 0, 36, 47),
    		image.Pt(44, 33),
    		image.Point{},
    	},
    
    	// The following tests all have a non-nil mask.
    	{
    		"basic mask",
    		image.Rect(0, 0, 80, 80),
    		image.Rect(20, 0, 100, 80),
    		image.Rect(0, 0, 50, 49),
    		image.Rect(0, 0, 46, 47),
    		image.Point{},
    		image.Point{},
    		false,
    		image.Rect(20, 0, 46, 47),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      internal const val B0_FLAG_RSV3 = 16
    
      /** Byte 0 mask for the frame opcode. */
      internal const val B0_MASK_OPCODE = 15
    
      /** Flag in the opcode which indicates a control frame. */
      internal const val OPCODE_FLAG_CONTROL = 8
    
      /**
       * Byte 1 flag for whether the payload data is masked.
       *
       * If this flag is set, the next four
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. pkg/volume/volume_linux.go

    	// is not what we want; thus, we skip chmod for symlinks.
    	if info.Mode()&os.ModeSymlink != 0 {
    		return nil
    	}
    
    	mask := rwMask
    	if readonly {
    		mask = roMask
    	}
    
    	if info.IsDir() {
    		mask |= os.ModeSetgid
    		mask |= execMask
    	}
    
    	err = os.Chmod(filename, info.Mode()|mask)
    	if err != nil {
    		klog.ErrorS(err, "chmod failed", "path", filename)
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top