Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 187 for UInt32 (0.31 sec)

  1. src/internal/runtime/atomic/atomic_mipsx.s

    	SC	R3, (R1)
    	BEQ	R3, -4(PC)
    	SYNC
    	RET
    
    // func Or32(addr *uint32, v uint32) old uint32
    TEXT ·Or32(SB), NOSPLIT, $0-12
    	MOVW	ptr+0(FP), R1
    	MOVW	val+4(FP), R2
    
    	SYNC
    	LL	(R1), R3
    	OR	R2, R3, R4
    	SC	R4, (R1)
    	BEQ	R4, -4(PC)
    	SYNC
    	MOVW	R3, ret+8(FP)
    	RET
    
    // func And32(addr *uint32, v uint32) old uint32
    TEXT ·And32(SB), NOSPLIT, $0-12
    	MOVW	ptr+0(FP), R1
    	MOVW	val+4(FP), R2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. test/codegen/bits.go

    	return a & (1 << 63)
    }
    
    func and_mask_3(a, b uint32) (uint32, uint32) {
    	// arm/7:`BIC`,-`AND`
    	a &= 0xffffaaaa
    	// arm/7:`BFC`,-`AND`,-`BIC`
    	b &= 0xffc003ff
    	return a, b
    }
    
    // Check generation of arm64 BIC/EON/ORN instructions
    
    func op_bic(x, y uint32) uint32 {
    	// arm64:`BIC\t`,-`AND`
    	return x &^ y
    }
    
    func op_eon(x, y, z uint32, a []uint32, n, m uint64) uint64 {
    	// arm64:`EON\t`,-`EOR`,-`MVN`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. src/hash/adler32/adler32.go

    // Add p to the running checksum d.
    func update(d digest, p []byte) digest {
    	s1, s2 := uint32(d&0xffff), uint32(d>>16)
    	for len(p) > 0 {
    		var q []byte
    		if len(p) > nmax {
    			p, q = p[:nmax], p[nmax:]
    		}
    		for len(p) >= 4 {
    			s1 += uint32(p[0])
    			s2 += s1
    			s1 += uint32(p[1])
    			s2 += s1
    			s1 += uint32(p[2])
    			s2 += s1
    			s1 += uint32(p[3])
    			s2 += s1
    			p = p[4:]
    		}
    		for _, x := range p {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_mips64x.s

    	SC	R3, (R1)
    	BEQ	R3, -4(PC)
    	SYNC
    	RET
    
    // func Or32(addr *uint32, v uint32) old uint32
    TEXT ·Or32(SB), NOSPLIT, $0-20
    	MOVV	ptr+0(FP), R1
    	MOVW	val+8(FP), R2
    
    	SYNC
    	LL	(R1), R3
    	OR	R2, R3, R4
    	SC	R4, (R1)
    	BEQ	R4, -3(PC)
    	SYNC
    	MOVW	R3, ret+16(FP)
    	RET
    
    // func And32(addr *uint32, v uint32) old uint32
    TEXT ·And32(SB), NOSPLIT, $0-20
    	MOVV	ptr+0(FP), R1
    	MOVW	val+8(FP), R2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_andor_test.go

    func TestAnd32(t *testing.T) {
    	// Basic sanity check.
    	x := uint32(0xffffffff)
    	for i := uint32(0); i < 32; i++ {
    		old := x
    		v := atomic.And32(&x, ^(1 << i))
    		if r := uint32(0xffffffff) << (i + 1); x != r || v != old {
    			t.Fatalf("clearing bit %#x: want %#x, got new %#x and old %#v", uint32(1<<i), r, x, v)
    		}
    	}
    
    	// Set every bit in array to 1.
    	a := make([]uint32, 1<<12)
    	for i := range a {
    		a[i] = 0xffffffff
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 27 20:49:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/hash/crc32/crc32.go

    		updateCastagnoli = func(crc uint32, p []byte) uint32 {
    			return slicingUpdate(crc, castagnoliTable8, p)
    		}
    	}
    
    	haveCastagnoli.Store(true)
    }
    
    // IEEETable is the table for the [IEEE] polynomial.
    var IEEETable = simpleMakeTable(IEEE)
    
    // ieeeTable8 is the slicing8Table for IEEE
    var ieeeTable8 *slicing8Table
    var updateIEEE func(crc uint32, p []byte) uint32
    var ieeeOnce sync.Once
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/internal/byteorder/byteorder.go

    	return append(b,
    		byte(v),
    		byte(v>>8),
    	)
    }
    
    func LeUint32(b []byte) uint32 {
    	_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
    }
    
    func LePutUint32(b []byte, v uint32) {
    	_ = b[3] // early bounds check to guarantee safety of writes below
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 20:31:29 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. api/go1.23.txt

    pkg sync/atomic, func OrUint64(*uint64, uint64) uint64 #61395
    pkg sync/atomic, func OrUintptr(*uintptr, uintptr) uintptr #61395
    pkg sync/atomic, method (*Int32) And(int32) int32 #61395
    pkg sync/atomic, method (*Int32) Or(int32) int32 #61395
    pkg sync/atomic, method (*Int64) And(int64) int64 #61395
    pkg sync/atomic, method (*Int64) Or(int64) int64 #61395
    pkg sync/atomic, method (*Uint32) And(uint32) uint32 #61395
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. src/crypto/des/block.go

    // feistelBoxOnce.Do(initFeistelBox) first.
    func feistel(l, r uint32, k0, k1 uint64) (lout, rout uint32) {
    	var t uint32
    
    	t = r ^ uint32(k0>>32)
    	l ^= feistelBox[7][t&0x3f] ^
    		feistelBox[5][(t>>8)&0x3f] ^
    		feistelBox[3][(t>>16)&0x3f] ^
    		feistelBox[1][(t>>24)&0x3f]
    
    	t = ((r << 28) | (r >> 4)) ^ uint32(k0)
    	l ^= feistelBox[6][(t)&0x3f] ^
    		feistelBox[4][(t>>8)&0x3f] ^
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/atomic_andor_generic.go

    //go:linkname Anduintptr
    //go:linkname Oruintptr
    
    package atomic
    
    import _ "unsafe" // For linkname
    
    //go:nosplit
    func And32(ptr *uint32, val uint32) uint32 {
    	for {
    		old := *ptr
    		if Cas(ptr, old, old&val) {
    			return old
    		}
    	}
    }
    
    //go:nosplit
    func Or32(ptr *uint32, val uint32) uint32 {
    	for {
    		old := *ptr
    		if Cas(ptr, old, old|val) {
    			return old
    		}
    	}
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top