Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,050 for Select0 (0.35 sec)

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

    	v_0 := v.Args[0]
    	b := v.Block
    	// match: (Select0 (Mul64uhilo x y))
    	// result: (MULHVU x y)
    	for {
    		if v_0.Op != OpMul64uhilo {
    			break
    		}
    		y := v_0.Args[1]
    		x := v_0.Args[0]
    		v.reset(OpLOONG64MULHVU)
    		v.AddArg2(x, y)
    		return true
    	}
    	// match: (Select0 (Mul64uover x y))
    	// result: (MULV x y)
    	for {
    		if v_0.Op != OpMul64uover {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritePPC64.go

    	typ := &b.Func.Config.Types
    	// match: (Select0 (Mul64uhilo x y))
    	// result: (MULHDU x y)
    	for {
    		if v_0.Op != OpMul64uhilo {
    			break
    		}
    		y := v_0.Args[1]
    		x := v_0.Args[0]
    		v.reset(OpPPC64MULHDU)
    		v.AddArg2(x, y)
    		return true
    	}
    	// match: (Select0 (Add64carry x y c))
    	// result: (Select0 <typ.UInt64> (ADDE x y (Select1 <typ.UInt64> (ADDCconst c [-1]))))
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  3. src/runtime/select.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    // This file contains the implementation of Go select statements.
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    const debugSelect = false
    
    // Select case descriptor.
    // Known to compiler.
    // Changes here must also be made in src/cmd/compile/internal/walk/select.go's scasetype.
    type scase struct {
    	c    *hchan         // chan
    	elem unsafe.Pointer // data element
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. test/chan/select6.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test for select: Issue 2075
    // A bug in select corrupts channel queues of failed cases
    // if there are multiple waiters on those channels and the
    // select is the last in the queue. If further waits are made
    // on the channel without draining it first then those waiters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 783 bytes
    - Viewed (0)
  5. test/chan/select4.go

    // license that can be found in the LICENSE file
    
    // Test that a select statement proceeds when a value is ready.
    
    package main
    
    func f() *int {
    	println("BUG: called f")
    	return new(int)
    }
    
    func main() {
    	var x struct {
    		a int
    	}
    	c := make(chan int, 1)
    	c1 := make(chan int)
    	c <- 42
    	select {
    	case *f() = <-c1:
    		// nothing
    	case x.a = <-c:
    		if x.a != 42 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 513 bytes
    - Viewed (0)
  6. clause/select.go

    package clause
    
    // Select select attrs when querying, updating, creating
    type Select struct {
    	Distinct   bool
    	Columns    []Column
    	Expression Expression
    }
    
    func (s Select) Name() string {
    	return "SELECT"
    }
    
    func (s Select) Build(builder Builder) {
    	if len(s.Columns) > 0 {
    		if s.Distinct {
    			builder.WriteString("DISTINCT ")
    		}
    
    		for idx, column := range s.Columns {
    			if idx > 0 {
    				builder.WriteByte(',')
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jul 14 07:51:24 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. test/chan/select7.go

    // license that can be found in the LICENSE file.
    
    // Test select when discarding a value.
    
    package main
    
    import "runtime"
    
    func recv1(c <-chan int) {
    	<-c
    }
    
    func recv2(c <-chan int) {
    	select {
    	case <-c:
    	}
    }
    
    func recv3(c <-chan int) {
    	c2 := make(chan int)
    	select {
    	case <-c:
    	case <-c2:
    	}
    }
    
    func send1(recv func(<-chan int)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 932 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/select.go

    	// optimization: zero-case select
    	if ncas == 0 {
    		return []ir.Node{mkcallstmt("block")}
    	}
    
    	// optimization: one-case select: single op.
    	if ncas == 1 {
    		cas := cases[0]
    		ir.SetPos(cas)
    		l := cas.Init()
    		if cas.Comm != nil { // not default:
    			n := cas.Comm
    			l = append(l, ir.TakeInit(n)...)
    			switch n.Op() {
    			default:
    				base.Fatalf("select %v", n.Op())
    
    			case ir.OSEND:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. test/chan/select.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test simple select.
    
    package main
    
    var counter uint
    var shift uint
    
    func GetValue() uint {
    	counter++
    	return 1 << shift
    }
    
    func Send(a, b chan uint) int {
    	var i int
    
    LOOP:
    	for {
    		select {
    		case a <- GetValue():
    			i++
    			a = nil
    		case b <- GetValue():
    			i++
    			b = nil
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 913 bytes
    - Viewed (0)
  10. test/codegen/select.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    func f() {
    	ch1 := make(chan int)
    	ch2 := make(chan int)
    	for {
    		// amd64:-`MOVQ\t[$]0, command-line-arguments..autotmp_3`
    		select {
    		case <-ch1:
    		case <-ch2:
    		default:
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 18:19:47 UTC 2022
    - 373 bytes
    - Viewed (0)
Back to top