Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 395 for Cond (0.03 sec)

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

    		}
    		for _, v := range b.Values {
    			if v == fun.values["cond"] {
    				t.Errorf("constant condition still present")
    			}
    		}
    	}
    
    }
    
    func TestNestedDeadBlocks(t *testing.T) {
    	c := testConfig(t)
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("cond", OpConstBool, c.config.Types.Bool, 0, nil),
    			If("cond", "b2", "b4")),
    		Bloc("b2",
    			If("cond", "b3", "b4")),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 23:01:51 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/arch/arm/armasm/tables.go

    	{0x0fe00000, 0x02800000, 2, ADD_EQ, 0x14011c04, instArgs{arg_R_12, arg_R_16, arg_const}},                      // ADD{S}<c> <Rd>,<Rn>,#<const> cond:4|0|0|1|0|1|0|0|S|Rn:4|Rd:4|imm12:12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 17:57:48 UTC 2017
    - 267.4K bytes
    - Viewed (0)
  3. src/sync/cond_test.go

    		// broadcast.
    		m.Lock()
    		done = true
    		m.Unlock()
    		cond.Broadcast()
    	}
    }
    
    func TestCondCopy(t *testing.T) {
    	defer func() {
    		err := recover()
    		if err == nil || err.(string) != "sync.Cond is copied" {
    			t.Fatalf("got %v, expect sync.Cond is copied", err)
    		}
    	}()
    	c := Cond{L: &Mutex{}}
    	c.Signal()
    	var c2 Cond
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 18:52:42 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. src/context/example_test.go

    }
    
    // This example uses AfterFunc to define a function which waits on a sync.Cond,
    // stopping the wait when a context is canceled.
    func ExampleAfterFunc_cond() {
    	waitOnCond := func(ctx context.Context, cond *sync.Cond, conditionMet func() bool) error {
    		stopf := context.AfterFunc(ctx, func() {
    			// We need to acquire cond.L here to be sure that the Broadcast
    			// below won't occur before the call to Wait, which would result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/script/conds.go

    func (c *prefixCond) Eval(s *State, suffix string) (bool, error) {
    	return c.eval(s, suffix)
    }
    
    // BoolCondition returns a Cond with the given truth value and summary.
    // The Cond rejects the use of condition suffixes.
    func BoolCondition(summary string, v bool) Cond {
    	return &boolCond{v: v, usage: CondUsage{Summary: summary}}
    }
    
    type boolCond struct {
    	v     bool
    	usage CondUsage
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 5K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/edwards25519.go

    // Constant-time operations
    
    // Select sets v to a if cond == 1 and to b if cond == 0.
    func (v *projCached) Select(a, b *projCached, cond int) *projCached {
    	v.YplusX.Select(&a.YplusX, &b.YplusX, cond)
    	v.YminusX.Select(&a.YminusX, &b.YminusX, cond)
    	v.Z.Select(&a.Z, &b.Z, cond)
    	v.T2d.Select(&a.T2d, &b.T2d, cond)
    	return v
    }
    
    // Select sets v to a if cond == 1 and to b if cond == 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewritePPC64latelower.go

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

    // codes, such as ".P.W". An initial period is ignored.
    func ParseARMCondition(cond string) (uint8, bool) {
    	return parseARMCondition(cond, armLS, armSCOND)
    }
    
    func parseARMCondition(cond string, ls, scond map[string]uint8) (uint8, bool) {
    	cond = strings.TrimPrefix(cond, ".")
    	if cond == "" {
    		return arm.C_SCOND_NONE, true
    	}
    	names := strings.Split(cond, ".")
    	bits := uint8(0)
    	for _, name := range names {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  9. src/runtime/race/testdata/sync_test.go

    	x := 0
    	_ = x
    	condition := 0
    	var mu sync.Mutex
    	cond := sync.NewCond(&mu)
    	go func() {
    		x = 1
    		mu.Lock()
    		condition = 1
    		cond.Signal()
    		mu.Unlock()
    	}()
    	mu.Lock()
    	for condition != 1 {
    		cond.Wait()
    	}
    	mu.Unlock()
    	x = 2
    }
    
    func TestRaceCond(t *testing.T) {
    	done := make(chan bool)
    	var mu sync.Mutex
    	cond := sync.NewCond(&mu)
    	x := 0
    	_ = x
    	condition := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 10 15:05:17 UTC 2020
    - 3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go

    type conditionalProgressRequester struct {
    	clock                TickerFactory
    	requestWatchProgress WatchProgressRequester
    	contextMetadata      metadata.MD
    
    	mux     sync.Mutex
    	cond    *sync.Cond
    	waiting int
    	stopped bool
    }
    
    func (pr *conditionalProgressRequester) Run(stopCh <-chan struct{}) {
    	ctx := wait.ContextForChannel(stopCh)
    	if pr.contextMetadata != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 09:56:38 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top