Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for test_sum (0.15 sec)

  1. src/cmd/internal/obj/x86/pcrelative_test.go

    	"os"
    	"path/filepath"
    	"testing"
    )
    
    const asmData = `
    GLOBL zeros<>(SB),8,$64
    TEXT ยทtestASM(SB),4,$0
    VMOVUPS zeros<>(SB), %s // PC relative relocation is off by 1, for Y8-Y15, Z8-15 and Z24-Z31
    RET
    `
    
    const goData = `
    package main
    
    func testASM()
    
    func main() {
    	testASM()
    }
    `
    
    func objdumpOutput(t *testing.T, mname, source string) []byte {
    	tmpdir, err := os.MkdirTemp("", mname)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 23:16:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/net/http/httptrace/trace_test.go

    		t.Errorf("got %q; want %q", got, want)
    	}
    }
    
    func TestCompose(t *testing.T) {
    	var buf strings.Builder
    	var testNum int
    
    	connectStart := func(b byte) func(network, addr string) {
    		return func(network, addr string) {
    			if addr != "addr" {
    				t.Errorf(`%d. args for %q case = %q, %q; want addr of "addr"`, testNum, b, network, addr)
    			}
    			buf.WriteByte(b)
    		}
    	}
    
    	tests := [...]struct {
    		trace, old *ClientTrace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testlife/testdata/main.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    // Run the game of life in C using Go for parallelization.
    
    package main
    
    import (
    	"flag"
    	"fmt"
    
    	"cgolife"
    )
    
    const MAXDIM = 100
    
    var dim = flag.Int("dim", 16, "board dimensions")
    var gen = flag.Int("gen", 10, "generations")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 803 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/teststdio/testdata/hello.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    package main
    
    import "cgostdio/stdio"
    
    func main() {
    	stdio.Stdout.WriteString(stdio.Greeting + "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 285 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/cgo_test.go

    func TestCheckConst(t *testing.T)            { testCheckConst(t) }
    func TestConst(t *testing.T)                 { testConst(t) }
    func TestCthread(t *testing.T)               { testCthread(t) }
    func TestEnum(t *testing.T)                  { testEnum(t) }
    func TestNamedEnum(t *testing.T)             { testNamedEnum(t) }
    func TestCastToEnum(t *testing.T)            { testCastToEnum(t) }
    func TestErrno(t *testing.T)                 { testErrno(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/teststdio/testdata/chain.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    // Pass numbers along a chain of threads.
    
    package main
    
    import (
    	"runtime"
    	"strconv"
    
    	"cgostdio/stdio"
    )
    
    const N = 10
    const R = 5
    
    func link(left chan<- int, right <-chan int) {
    	// Keep the links in dedicated operating system
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 914 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/teststdio/testdata/fib.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    // Compute Fibonacci numbers with two goroutines
    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	"runtime"
    	"strconv"
    
    	"cgostdio/stdio"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 965 bytes
    - Viewed (0)
  8. .gitignore

    .tags*
    
    # Version file for dockerized build
    .dockerized-kube-version-defs
    
    # Web UI
    /www/master/node_modules/
    /www/master/npm-debug.log
    /www/master/shared/config/development.json
    
    # Karma output
    /www/test_out
    
    # precommit temporary directories created by ./hack/verify-generated-docs.sh and ./hack/lib/util.sh
    /_tmp/
    /doc_tmp/
    
    # Test artifacts produced by Prow/kubetest2 jobs
    /_artifacts/
    /_rundir/
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 08:22:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/image/color/color.go

    	// A batch version of this computation is in image/draw/draw.go.
    
    	cr, cg, cb, ca := c.RGBA()
    	ret, bestSum := 0, uint32(1<<32-1)
    	for i, v := range p {
    		vr, vg, vb, va := v.RGBA()
    		sum := sqDiff(cr, vr) + sqDiff(cg, vg) + sqDiff(cb, vb) + sqDiff(ca, va)
    		if sum < bestSum {
    			if sum == 0 {
    				return i
    			}
    			ret, bestSum = i, sum
    		}
    	}
    	return ret
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildParallelIntegrationTest.groovy

                            }
                        }
                    }
                """
            }
            (1..maxWorkers).each {
                dependency "org.test:sub${it}:1.0"
                expectedCalls << 'sub' + it
            }
    
            server.expectConcurrent(expectedCalls)
    
            then:
            execute(buildA, "jar", "--parallel", "--max-workers=$maxWorkers")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top