Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,773 for func4 (0.04 sec)

  1. test/func4.go

    // license that can be found in the LICENSE file.
    
    // Verify that it is illegal to take the address of a function.
    // Does not compile.
    
    package main
    
    var notmain func()
    
    func main() {
    	var x = &main		// ERROR "address of|invalid"
    	main = notmain	// ERROR "assign to|invalid"
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 409 bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/stacks.go

    	// the rest of the test, they will block.
    	go func() { // func1
    		select {}
    	}()
    	go func() { // func2
    		var c chan int
    		c <- 0
    	}()
    	go func() { // func3
    		var c chan int
    		<-c
    	}()
    	done1 := make(chan bool)
    	go func() { // func4
    		<-done1
    	}()
    	done2 := make(chan bool)
    	go func() { // func5
    		done2 <- true
    	}()
    	c1 := make(chan int)
    	c2 := make(chan int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. test/closure3.dir/main.go

    		}
    		y = func(x int) int { // ERROR "can inline main.func6" "func literal does not escape"
    			return x + 1
    		}
    		if y(40) != 41 {
    			ppanic("y(40) != 41")
    		}
    	}
    
    	{
    		func() { // ERROR "func literal does not escape"
    			y := func(x int) int { // ERROR "can inline main.func7.1" "func literal does not escape"
    				return x + 2
    			}
    			y = func(x int) int { // ERROR "can inline main.func7.2" "func literal does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:29 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/executor_tpuv1_outline_tpu_island.mlir

      }
      func.return %0 : tensor<f32>
    }
    
    // CHECK: module
    // CHECK-SAME: @_tpu_v1_compat_outlined
    // CHECK-LABEL: func nested @_tpu_v1_compat_outlined_func0(%arg0: tensor<i1>) -> tensor<i1>
    // CHECK-NEXT: tf.SomeTpuOp
    // CHECK-NEXT: tf.SomeOtherTpuOp
    
    // -----
    
    // Test single-core TPU case with single-op cluster.
    
    // CHECK-LABEL: @func4
    func.func @func4() {
      tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 04 03:54:58 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  5. test/codegen/issue60324.go

    	return g(x)
    }
    
    func g(x int) func() {
    	// amd64:"LEAQ\tcommand-line-arguments\\.g\\.h\\.func1"
    	return h(x)
    }
    
    func h(x int) func() {
    	// amd64:"LEAQ\tcommand-line-arguments\\.h\\.func1"
    	return func() { recover() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 22:47:15 UTC 2023
    - 805 bytes
    - Viewed (0)
  6. src/crypto/sha1/sha1block_386.s

    	ADDL	DI, e
    
    #define FUNC1(a, b, c, d, e) \
    	MOVL	d, DI; \
    	XORL	c, DI; \
    	ANDL	b, DI; \
    	XORL	d, DI
    
    #define FUNC2(a, b, c, d, e) \
    	MOVL	b, DI; \
    	XORL	c, DI; \
    	XORL	d, DI
    
    #define FUNC3(a, b, c, d, e) \
    	MOVL	b, SI; \
    	ORL	c, SI; \
    	ANDL	d, SI; \
    	MOVL	b, DI; \
    	ANDL	c, DI; \
    	ORL	SI, DI
    
    #define FUNC4 FUNC2
    
    #define MIX(a, b, c, d, e, const) \
    	ROLL	$30, b; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/crypto/sha1/sha1block_arm.s

    	SHUFFLE(Re)	; \
    	FUNC1(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND2(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC2(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND3(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC3(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND4(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC4(Ra, Rb, Rc, Rd, Re)	; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/internal/trace/trace_test.go

    			t.Fatal("did not see a goroutine in a the region 'special'")
    		}
    	})
    }
    
    func TestTraceGCStress(t *testing.T) {
    	testTraceProg(t, "gc-stress.go", nil)
    }
    
    func TestTraceGOMAXPROCS(t *testing.T) {
    	testTraceProg(t, "gomaxprocs.go", nil)
    }
    
    func TestTraceStacks(t *testing.T) {
    	testTraceProg(t, "stacks.go", func(t *testing.T, tb, _ []byte, stress bool) {
    		type frame struct {
    			fn   string
    			line int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. src/crypto/sha1/sha1block_amd64.s

    	MOVL	R10, (((index)&0xf)*4)(SP)
    
    #define FUNC1(a, b, c, d, e) \
    	MOVL	d, R9; \
    	XORL	c, R9; \
    	ANDL	b, R9; \
    	XORL	d, R9
    
    #define FUNC2(a, b, c, d, e) \
    	MOVL	b, R9; \
    	XORL	c, R9; \
    	XORL	d, R9
    
    #define FUNC3(a, b, c, d, e) \
    	MOVL	b, R8; \
    	ORL	c, R8; \
    	ANDL	d, R8; \
    	MOVL	b, R9; \
    	ANDL	c, R9; \
    	ORL	R8, R9
    
    #define FUNC4 FUNC2
    
    #define MIX(a, b, c, d, e, const) \
    	ROLL	$30, b; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. test/range4.go

    package main
    
    var gj int
    
    func yield4x(yield func() bool) {
    	_ = yield() && yield() && yield() && yield()
    }
    
    func yield4(yield func(int) bool) {
    	_ = yield(1) && yield(2) && yield(3) && yield(4)
    }
    
    func yield3(yield func(int) bool) {
    	_ = yield(1) && yield(2) && yield(3)
    }
    
    func yield2(yield func(int) bool) {
    	_ = yield(1) && yield(2)
    }
    
    func testfunc0() {
    	j := 0
    	for range yield4x {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top