Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for xi (0.07 sec)

  1. test/fixedbugs/issue30243.go

    // affect their values.
    
    package main
    
    import "fmt"
    
    func main() {
    	const x = 0.01
    	const xi = 0.01i
    	const xc = complex(0, x)
    
    	if imag(xi) != x {
    		fmt.Printf("FAILED: %g != %g\n", imag(xi), x)
    	}
    
    	if xi != complex(0, x) {
    		fmt.Printf("FAILED: %g != %g\n", xi, complex(0, x))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 21:05:17 UTC 2019
    - 578 bytes
    - Viewed (0)
  2. test/fixedbugs/issue4752.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func F(xi, yi interface{}) uint64 {
    	x, y := xi.(uint64), yi.(uint64)
    	return x &^ y
    }
    
    func G(xi, yi interface{}) uint64 {
    	return xi.(uint64) &^ yi.(uint64) // generates incorrect code
    }
    
    func main() {
    	var x, y uint64 = 0, 1 << 63
    	f := F(x, y)
    	g := G(x, y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 513 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/termlist.go

    	// TODO(gri) fix asymptotic performance
    	used := make([]bool, len(xl))
    	var rl termlist
    	for i, xi := range xl {
    		if xi == nil || used[i] {
    			continue
    		}
    		for j := i + 1; j < len(xl); j++ {
    			xj := xl[j]
    			if xj == nil || used[j] {
    				continue
    			}
    			if u1, u2 := xi.union(xj); u2 == nil {
    				// If we encounter a 𝓤 term, the entire list is 𝓤.
    				// Exit early.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 03 18:29:30 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. src/go/types/termlist.go

    	// TODO(gri) fix asymptotic performance
    	used := make([]bool, len(xl))
    	var rl termlist
    	for i, xi := range xl {
    		if xi == nil || used[i] {
    			continue
    		}
    		for j := i + 1; j < len(xl); j++ {
    			xj := xl[j]
    			if xj == nil || used[j] {
    				continue
    			}
    			if u1, u2 := xi.union(xj); u2 == nil {
    				// If we encounter a 𝓤 term, the entire list is 𝓤.
    				// Exit early.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/test/groovy/org/gradle/api/internal/plugins/UnixStartScriptGeneratorTest.groovy

            JavaAppStartScriptGenerationDetails details = createScriptGenerationDetails(['-Dfoo=b"ar baz', '-Xi""nt'], 'bin')
            Writer destination = new StringWriter()
    
            when:
            generator.generateScript(details, destination)
    
            then:
            destination.toString().contains(/DEFAULT_JVM_OPTS='"-Dfoo=b\"ar baz" "-Xi\"\"nt"'/)
        }
    
        def "defaultJvmOpts is expanded properly in unix script -- single quotes"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. test/fibo.go

    	}
    	// m >= n > 0
    
    	z = z.make(m + 1)
    	var c big.Word
    
    	for i, xi := range x[:n] {
    		yi := y[i]
    		zi := xi + yi + c
    		z[i] = zi
    		// see "Hacker's Delight", section 2-12 (overflow detection)
    		c = ((xi & yi) | ((xi | yi) &^ zi)) >> (W - 1)
    	}
    	for i, xi := range x[n:] {
    		zi := xi + c
    		z[n+i] = zi
    		c = (xi &^ zi) >> (W - 1)
    		if c == 0 {
    			copy(z[n+i+1:], x[i+1:])
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 08 22:22:58 UTC 2014
    - 6.3K bytes
    - Viewed (0)
  7. src/internal/diff/diff.go

    	//	xi[i] = increasing indexes of unique strings in x.
    	//	yi[i] = increasing indexes of unique strings in y.
    	//	inv[i] = index j such that x[xi[i]] = y[yi[j]].
    	var xi, yi, inv []int
    	for i, s := range y {
    		if m[s] == -1+-4 {
    			m[s] = len(yi)
    			yi = append(yi, i)
    		}
    	}
    	for i, s := range x {
    		if j, ok := m[s]; ok && j >= 0 {
    			xi = append(xi, i)
    			inv = append(inv, j)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/typeparams/termlist.go

    	// TODO(gri) fix asymptotic performance
    	used := make([]bool, len(xl))
    	var rl termlist
    	for i, xi := range xl {
    		if xi == nil || used[i] {
    			continue
    		}
    		for j := i + 1; j < len(xl); j++ {
    			xj := xl[j]
    			if xj == nil || used[j] {
    				continue
    			}
    			if u1, u2 := xi.union(xj); u2 == nil {
    				// If we encounter a 𝓤 term, the entire list is 𝓤.
    				// Exit early.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 21:08:44 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. src/go/types/unify.go

    		}
    
    		// We don't have two interfaces. If we have one, make sure it's in xi.
    		if yi != nil {
    			xi = yi
    			y = x
    		}
    
    		// If we have one interface, at a minimum each of the interface methods
    		// must be implemented and thus unify with a corresponding method from
    		// the non-interface type, otherwise unification fails.
    		if xi != nil {
    			// All xi methods must exist in y and corresponding signatures must unify.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/unify.go

    		}
    
    		// We don't have two interfaces. If we have one, make sure it's in xi.
    		if yi != nil {
    			xi = yi
    			y = x
    		}
    
    		// If we have one interface, at a minimum each of the interface methods
    		// must be implemented and thus unify with a corresponding method from
    		// the non-interface type, otherwise unification fails.
    		if xi != nil {
    			// All xi methods must exist in y and corresponding signatures must unify.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top