Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 92 for MASK (0.04 sec)

  1. src/cmd/cgo/internal/testcshared/testdata/main4.c

    // Signal handler for SIGSEGV on a C thread.
    static void segvHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigset_t mask;
    	int i;
    
    	if (sigemptyset(&mask) < 0) {
    		die("sigemptyset");
    	}
    	if (sigaddset(&mask, SIGSEGV) < 0) {
    		die("sigaddset");
    	}
    	i = sigprocmask(SIG_UNBLOCK, &mask, NULL);
    	if (i != 0) {
    		fprintf(stderr, "sigprocmask: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. src/runtime/sigqueue.go

    		sig.delivering.Add(-1)
    		return false
    	}
    
    	// Add signal to outgoing queue.
    	for {
    		mask := sig.mask[s/32]
    		if mask&bit != 0 {
    			sig.delivering.Add(-1)
    			return true // signal already in queue
    		}
    		if atomic.Cas(&sig.mask[s/32], mask, mask|bit) {
    			break
    		}
    	}
    
    	// Notify receiver that queue has new bit.
    Send:
    	for {
    		switch sig.state.Load() {
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/inspector.go

    	// features seem to contribute similar slowdowns (~1.4x each).
    
    	mask := maskOf(types)
    	for i := 0; i < len(in.events); {
    		ev := in.events[i]
    		if ev.index > i {
    			// push
    			if ev.typ&mask != 0 {
    				f(ev.node)
    			}
    			pop := ev.index
    			if in.events[pop].typ&mask == 0 {
    				// Subtrees do not contain types: skip them and pop.
    				i = pop + 1
    				continue
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. src/internal/abi/switch.go

    	// Array of NCases elements.
    	// Each case must be a non-empty interface type.
    	Cases [1]*InterfaceType
    }
    
    type InterfaceSwitchCache struct {
    	Mask    uintptr                      // mask for index. Must be a power of 2 minus 1
    	Entries [1]InterfaceSwitchCacheEntry // Mask+1 entries total
    }
    
    type InterfaceSwitchCacheEntry struct {
    	// type of source value (a *Type)
    	Typ uintptr
    	// case # to dispatch to
    	Case int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/net/interface_plan9.go

    			}
    			if ip.To16() != nil && ip.To4() == nil { // IPv6 address
    				mask = CIDRMask(pfxlen, 8*IPv6len)
    			}
    
    			addrs = append(addrs, &IPNet{IP: ip, Mask: mask})
    		}
    	}
    
    	return addrs, nil
    }
    
    // interfaceMulticastAddrTable returns addresses for a specific
    // interface.
    func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
    	return nil, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/internal/bytealg/count_amd64.s

    	ANDQ $15, BX
    	JZ end
    
    	// Create mask to ignore overlap between previous 16 byte block
    	// and the next.
    	MOVQ $16,CX
    	SUBQ BX, CX
    	MOVQ $0xFFFF, R10
    	SARQ CL, R10
    	SALQ CL, R10
    
    	// Process the last 16-byte chunk. This chunk may overlap with the
    	// chunks we've already searched so we need to mask part of it.
    	MOVOU	(AX), X1
    	PCMPEQB	X0, X1
    	PMOVMSKB X1, DX
    	// Apply mask
    	ANDQ R10, DX
    	POPCNTL DX, DX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:54:43 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/SmallCharMatcher.java

            index = (index + 1) & mask;
          }
        }
        return new SmallCharMatcher(table, filter, containsZero, description);
      }
    
      @Override
      public boolean matches(char c) {
        if (c == 0) {
          return containsZero;
        }
        if (!checkFilter(c)) {
          return false;
        }
        int mask = table.length - 1;
        int startingIndex = smear(c) & mask;
        int index = startingIndex;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableSet.java

      // 'and' with an int to get a valid table index.
      private final transient int mask;
      private final transient int size;
    
      RegularImmutableSet(
          @Nullable Object[] elements, int hashCode, @Nullable Object[] table, int mask, int size) {
        this.elements = elements;
        this.hashCode = hashCode;
        this.table = table;
        this.mask = mask;
        this.size = size;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/cidr.go

    // The CIDR must be an IPv4 or IPv6 subnet address with a mask.
    // Leading zeros in IPv4 address octets are not allowed.
    // IPv4-mapped IPv6 addresses (e.g. ::ffff:1.2.3.4/24) are not allowed.
    //
    //	cidr(<string>) <CIDR>
    //
    // Examples:
    //
    //	cidr('192.168.0.0/16') // returns an IPv4 address with a CIDR mask
    //	cidr('::1/128') // returns an IPv6 address with a CIDR mask
    //	cidr('192.168.0.0/33') // error
    //	cidr('::1/129') // error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top