Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Xor32 (0.07 sec)

  1. test/armimm.go

    	if want, got = a-c32s, sub32s(a); got != want {
    		panic(fmt.Sprintf("sub32s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a|c32a, or32(a); got != want {
    		panic(fmt.Sprintf("or32(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a^c32a, xor32(a); got != want {
    		panic(fmt.Sprintf("xor32(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = c32a-a, subr32a(a); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 13:53:54 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  2. src/crypto/subtle/xor_ppc64x.s

    	MOVD	b+16(FP), R5	// R5 = b
    	MOVD	n+24(FP), R6	// R6 = n
    
    	CMPU	R6, $64, CR7	// Check if n ≥ 64 bytes
    	MOVD	R0, R8		// R8 = index
    	CMPU	R6, $8, CR6	// Check if 8 ≤ n < 64 bytes
    	BLE	CR6, small	// <= 8
    	BLT	CR7, xor32	// Case for 32 ≤ n < 64 bytes
    
    	// Case for n ≥ 64 bytes
    preloop64:
    	SRD	$6, R6, R7	// Set up loop counter
    	MOVD	R7, CTR
    	MOVD	$16, R10
    	MOVD	$32, R14
    	MOVD	$48, R15
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    ((Add32|Or32|Xor32) left:(Lsh32x64 x y) right:(Rsh32Ux64 x (Sub64 (Const64 [32]) y))) && (shiftIsBounded(left) || shiftIsBounded(right)) && canRotate(config, 32) => (RotateLeft32 x y)
    ((Add32|Or32|Xor32) left:(Lsh32x32 x y) right:(Rsh32Ux32 x (Sub32 (Const32 [32]) y))) && (shiftIsBounded(left) || shiftIsBounded(right)) && canRotate(config, 32) => (RotateLeft32 x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/dec64.rules

    (Rsh64x64 x y)  => (Rsh64x32  x (Or32 <typ.UInt32> (Zeromask (Int64Hi y)) (Int64Lo y)))
    (Rsh64Ux64 x y) => (Rsh64Ux32 x (Or32 <typ.UInt32> (Zeromask (Int64Hi y)) (Int64Lo y)))
    (Lsh32x64 x y)  => (Lsh32x32  x (Or32 <typ.UInt32> (Zeromask (Int64Hi y)) (Int64Lo y)))
    (Rsh32x64 x y)  => (Rsh32x32  x (Or32 <typ.UInt32> (Zeromask (Int64Hi y)) (Int64Lo y)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 14.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritedec64.go

    }
    func rewriteValuedec64_OpXor64(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Xor64 x y)
    	// result: (Int64Make (Xor32 <typ.UInt32> (Int64Hi x) (Int64Hi y)) (Xor32 <typ.UInt32> (Int64Lo x) (Int64Lo y)))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpInt64Make)
    		v0 := b.NewValue0(v.Pos, OpXor32, typ.UInt32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 65.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    					continue
    				}
    				y := v_1_1
    				v.copyOf(y)
    				return true
    			}
    		}
    		break
    	}
    	// match: (Xor32 (Xor32 i:(Const32 <t>) z) x)
    	// cond: (z.Op != OpConst32 && x.Op != OpConst32)
    	// result: (Xor32 i (Xor32 <t> z x))
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpXor32 {
    				continue
    			}
    			_ = v_0.Args[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "Or16", argLength: 2, commutative: true},
    	{name: "Or32", argLength: 2, commutative: true},
    	{name: "Or64", argLength: 2, commutative: true},
    
    	{name: "Xor8", argLength: 2, commutative: true}, // arg0 ^ arg1
    	{name: "Xor16", argLength: 2, commutative: true},
    	{name: "Xor32", argLength: 2, commutative: true},
    	{name: "Xor64", argLength: 2, commutative: true},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_andor_generic.go

    //
    //go:linkname And32
    //go:linkname Or32
    //go:linkname And64
    //go:linkname Or64
    //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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_andor_test.go

    	var x [128]uint32 // give x its own cache line
    	sink = &x
    	for i := 0; i < b.N; i++ {
    		atomic.Or32(&x[63], uint32(i))
    	}
    }
    
    func BenchmarkOr32Parallel(b *testing.B) {
    	var x [128]uint32 // give x its own cache line
    	sink = &x
    	b.RunParallel(func(pb *testing.PB) {
    		i := uint32(0)
    		for pb.Next() {
    			atomic.Or32(&x[63], i)
    			i++
    		}
    	})
    }
    
    func BenchmarkOr64(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 27 20:49:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/atomic_mipsx.s

    TEXT ·And(SB), NOSPLIT, $0-8
    	MOVW	ptr+0(FP), R1
    	MOVW	val+4(FP), R2
    
    	SYNC
    	LL	(R1), R3
    	AND	R2, R3
    	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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top