Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for Reset (0.48 sec)

  1. src/cmd/compile/internal/ssa/rewritePPC64.go

    		new_ := v_2
    		mem := v_3
    		v.reset(OpPPC64LoweredAtomicCas32)
    		v.AuxInt = int64ToAuxInt(0)
    		v.AddArg4(ptr, old, new_, mem)
    		return true
    	}
    }
    func rewriteValuePPC64_OpAtomicLoad32(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (AtomicLoad32 ptr mem)
    	// result: (LoweredAtomicLoad32 [1] ptr mem)
    	for {
    		ptr := v_0
    		mem := v_1
    		v.reset(OpPPC64LoweredAtomicLoad32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewriteARM64.go

    				continue
    			}
    			v.reset(OpARM64MSUBW)
    			v.AddArg3(a, x, y)
    			return true
    		}
    		break
    	}
    	// match: (ADD x (NEG y))
    	// result: (SUB x y)
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			x := v_0
    			if v_1.Op != OpARM64NEG {
    				continue
    			}
    			y := v_1.Args[0]
    			v.reset(OpARM64SUB)
    			v.AddArg2(x, y)
    			return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/copyelim.go

    				// Rewrite all 0-sized Go values to remove accessors, dereferences, loads, etc.
    				if t := v.Type; (t.IsStruct() || t.IsArray()) && t.Size() == 0 {
    					if t.IsStruct() {
    						v.reset(OpStructMake0)
    					} else {
    						v.reset(OpArrayMake0)
    					}
    				}
    				// Modify all values so no arg (including args
    				// of OpCopy) is a copy.
    				copyelimValue(v)
    				change = phielimValue(v) || change
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritePPC64latelower.go

    		v.reset(OpPPC64CMPconst)
    		v.AuxInt = int64ToAuxInt(0)
    		v.AddArg(convertPPC64OpToOpCC(z))
    		return true
    	}
    	// match: (CMPconst [0] z:(RLDICL x))
    	// cond: v.Block == z.Block
    	// result: (CMPconst [0] convertPPC64OpToOpCC(z))
    	for {
    		if auxIntToInt64(v.AuxInt) != 0 {
    			break
    		}
    		z := v_0
    		if z.Op != OpPPC64RLDICL {
    			break
    		}
    		if !(v.Block == z.Block) {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    	buf := NewBuffer(make([]byte, n))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteByte('x')
    		}
    	}
    }
    
    func BenchmarkWriteRune(b *testing.B) {
    	const n = 4 << 10
    	const r = '☺'
    	b.SetBytes(int64(n * utf8.RuneLen(r)))
    	buf := NewBuffer(make([]byte, n*utf8.UTFMax))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteRune(r)
    		}
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    				continue
    			}
    			y := v_1.Args[0]
    			v.reset(OpSub16)
    			v.AddArg2(x, y)
    			return true
    		}
    		break
    	}
    	// match: (Add16 (Com16 x) x)
    	// result: (Const16 [-1])
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpCom16 {
    				continue
    			}
    			x := v_0.Args[0]
    			if x != v_1 {
    				continue
    			}
    			v.reset(OpConst16)
    			v.AuxInt = int16ToAuxInt(-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/debug.go

    				state.changedVars.add(ID(state.slotVars[k]))
    			}
    		}
    	}
    
    	reset := func(ourStartState abt.T) {
    		if !(forLocationLists || blockChanged) {
    			// there is no change and this is not for location lists, do
    			// not bother to reset currentState because it will not be
    			// examined.
    			return
    		}
    		state.currentState.reset(ourStartState)
    	}
    
    	// Zero predecessors
    	if len(preds) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  8. tests/prepared_stmt_test.go

    	}
    
    	pdb.Mux.Lock()
    	if len(pdb.Stmts) == 0 {
    		pdb.Mux.Unlock()
    		t.Fatalf("prepared stmt can not be empty")
    	}
    	pdb.Mux.Unlock()
    
    	pdb.Reset()
    	pdb.Mux.Lock()
    	defer pdb.Mux.Unlock()
    	if len(pdb.Stmts) != 0 {
    		t.Fatalf("prepared stmt should be empty")
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 07:55:43 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go

    	{100, "ENETDOWN", "network is down"},
    	{101, "ENETUNREACH", "network is unreachable"},
    	{102, "ENETRESET", "network dropped connection on reset"},
    	{103, "ECONNABORTED", "software caused connection abort"},
    	{104, "ECONNRESET", "connection reset by peer"},
    	{105, "ENOBUFS", "no buffer space available"},
    	{106, "EISCONN", "transport endpoint is already connected"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/block.go

    	}
    	b.ResetControls()
    	for _, c := range from.ControlValues() {
    		b.AddControl(c)
    	}
    }
    
    // Reset sets the block to the provided kind and clears all the blocks control
    // and auxiliary values. Other properties of the block, such as its successors,
    // predecessors and values are left unmodified.
    func (b *Block) Reset(kind BlockKind) {
    	b.Kind = kind
    	b.ResetControls()
    	b.Aux = nil
    	b.AuxInt = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top