Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for bitMasks (0.84 sec)

  1. src/sync/atomic/doc.go

    // AndInt32 atomically performs a bitwise AND operation on *addr using the bitmask provided as mask
    // and returns the old value.
    // Consider using the more ergonomic and less error-prone [Int32.And] instead.
    func AndInt32(addr *int32, mask int32) (old int32)
    
    // AndUint32 atomically performs a bitwise AND operation on *addr using the bitmask provided as mask
    // and returns the old value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/sync/atomic/type.go

    // And atomically performs a bitwise AND operation on x using the bitmask
    // provided as mask and returns the old value.
    func (x *Int32) And(mask int32) (old int32) { return AndInt32(&x.v, mask) }
    
    // Or atomically performs a bitwise OR operation on x using the bitmask
    // provided as mask and returns the old value.
    func (x *Int32) Or(mask int32) (old int32) { return OrInt32(&x.v, mask) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/crypto/rsa/pss.go

    	//     stop.
    	var bitMask byte = 0xff >> (8*emLen - emBits)
    	if em[0] & ^bitMask != 0 {
    		return ErrVerification
    	}
    
    	// 7.  Let dbMask = MGF(H, emLen - hLen - 1).
    	//
    	// 8.  Let DB = maskedDB \xor dbMask.
    	mgf1XOR(db, hash, h)
    
    	// 9.  Set the leftmost 8 * emLen - emBits bits of the leftmost octet in DB
    	//     to zero.
    	db[0] &= bitMask
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/runtime/map_test.go

    		m[i] += i
    	}
    	growflag := true
    	bitmask := 0
    	for k := range m {
    		if k < 16 {
    			bitmask |= 1 << uint(k)
    		}
    		if growflag {
    			// grow the table
    			for i := 100; i < 1000; i++ {
    				m[i] = i
    			}
    			// trigger a gc
    			runtime.GC()
    			growflag = false
    		}
    	}
    	if bitmask != 1<<16-1 {
    		t.Error("missing key", bitmask)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

                        DenseIntElementsAttr& shape) {
      Type type = val_bcast.getType();
      Type elem_type = getElementTypeOrSelf(type);
      // Xla's all_reduce legalizer bitcasts to 32 bits, so only
      // element types size <= 4 bytes are supported.
      if (elem_type.isBF16() || elem_type.isF16() || elem_type.isTF32() ||
          elem_type.isF32()) {
        zero = builder.getFloatAttr(elem_type, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/runtime/mbitmap.go

    		dst = add1(dst)
    		bits >>= 8
    	}
    	return totalBits
    }
    
    // materializeGCProg allocates space for the (1-bit) pointer bitmask
    // for an object of size ptrdata.  Then it fills that space with the
    // pointer bitmask specified by the program prog.
    // The bitmask starts at s.startAddr.
    // The result must be deallocated with dematerializeGCProg.
    func materializeGCProg(ptrdata uintptr, prog *byte) *mspan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  7. src/runtime/panic.go

    // bit in a bitmask. At each function exit, we add inline code to directly make
    // the appropriate defer calls based on the bitmask and fn/arg information stored
    // on the stack. During panic/Goexit processing, the appropriate defer calls are
    // made using extra funcdata info that indicates the exact stack slots that
    // contain the bitmask and defer fn/args.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  8. src/net/ip.go

    // IP address as an IPv4 address or an IPv6 address
    // is a semantic property of the address, not just the
    // length of the byte slice: a 16-byte slice can still
    // be an IPv4 address.
    type IP []byte
    
    // An IPMask is a bitmask that can be used to manipulate
    // IP addresses for IP addressing and routing.
    //
    // See type [IPNet] and func [ParseCIDR] for details.
    type IPMask []byte
    
    // An IPNet represents an IP network.
    type IPNet struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite.go

    	mask_3 := (mask_1 & mask_2) << uint(GetPPC64Shiftsh(int64(sld)))
    	r_2 := GetPPC64Shiftsh(int64(sld))
    	r_3 := (r_1 + r_2) & 31 // This can wrap.
    
    	// Verify the result is still a valid bitmask of <= 32 bits.
    	if !isPPC64WordRotateMask(int64(mask_3)) || uint64(uint32(mask_3)) != mask_3 {
    		return 0
    	}
    	return encodePPC64RotateMask(r_3, int64(mask_3), 32)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  10. src/crypto/tls/cipher_suites.go

    type cipherSuite struct {
    	id uint16
    	// the lengths, in bytes, of the key material needed for each component.
    	keyLen int
    	macLen int
    	ivLen  int
    	ka     func(version uint16) keyAgreement
    	// flags is a bitmask of the suite* values, above.
    	flags  int
    	cipher func(key, iv []byte, isRead bool) any
    	mac    func(key []byte) hash.Hash
    	aead   func(key, fixedNonce []byte) aead
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top