Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 385 for S1 (0.1 sec)

  1. src/go/ast/commentmap_test.go

    	z    complex128 // complex value
    }
    // also associated with T
    
    // x
    var x = 0 // x = 0
    // also associated with x
    
    // f1
    func f1() {
    	/* associated with s1 */
    	s1()
    	// also associated with s1
    	
    	// associated with s2
    	
    	// also associated with s2
    	s2() // line comment for s2
    }
    // associated with f1
    // also associated with f1
    
    // associated with f2
    
    // f2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue48951.go

    type (
            A1[P any] [10]A1 /* ERROR "invalid recursive type" */ [P]
            A2[P any] [10]A2 /* ERROR "invalid recursive type" */ [*P]
            A3[P any] [10]*A3[P]
    
            L1[P any] []L1[P]
    
            S1[P any] struct{ f S1 /* ERROR "invalid recursive type" */ [P] }
            S2[P any] struct{ f S2 /* ERROR "invalid recursive type" */ [*P] } // like example in issue
            S3[P any] struct{ f *S3[P] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 822 bytes
    - Viewed (0)
  3. test/abi/method_wrapper.go

    var s S = 42
    var t = &T{S: s}
    
    var fn = (*T).M // force a method wrapper
    
    func main() {
    	a := 123
    	x := [2]int{456, 789}
    	b := 1.2
    	y := [2]float64{3.4, 5.6}
    	s1, a1, x1, b1, y1 := fn(t, a, x, b, y)
    	if a1 != a || x1 != x || b1 != b || y1 != y || s1 != s {
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 17 22:59:44 UTC 2021
    - 637 bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/AccessorsClassPathModelCrossVersionSpec.groovy

            def s1 = setOfAutomaticAccessorsFor(["application"])
            def s2 = setOfAutomaticAccessorsFor(["java"])
            def s3 = setOfAutomaticAccessorsFor(["application"])
            def s4 = setOfAutomaticAccessorsFor(["application", "java"])
            def s5 = setOfAutomaticAccessorsFor(["java"])
    
            expect:
            assertThat(s1, not(equalTo(s2))) // application ≠ java
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. src/encoding/json/encode_test.go

    		CaseName: Name("DominantField"),
    		// Both S1 and S2 have a field named X, but since S has an X field as
    		// well, it takes precedence over S1.X and S2.X.
    		makeInput: func() any {
    			type (
    				S1 struct{ x, X int }
    				S2 struct{ x, X int }
    				S  struct {
    					S1
    					S2
    					x, X int
    				}
    			)
    			return S{S1{1, 2}, S2{3, 4}, 5, 6}
    		},
    		want: `{"X":6}`,
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  6. pkg/slices/slices_test.go

    			},
    			want: []*string{},
    		},
    		{
    			name: "slice with 1 element",
    			args: args[string]{
    				[]string{s1},
    			},
    			want: []*string{&s1},
    		},
    		{
    			name: "slice with many elements",
    			args: args[string]{
    				[]string{s1, s2, s3},
    			},
    			want: []*string{&s1, &s2, &s3},
    		},
    	}
    	intTests := []testCase[int]{
    		{
    			name: "empty slice",
    			args: args[int]{
    				[]int{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. test/fixedbugs/bug189.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type S struct {
    	a, b int
    }
    
    func main() {
    	s1 := S{a: 7};	// ok - field is named
    	s3 := S{7, 11};	// ok - all fields have values
    	s2 := S{7};	// ERROR "too few"
    	_, _, _ = s1, s3, s2;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 376 bytes
    - Viewed (0)
  8. src/runtime/rand.go

    	// http://simul.iro.umontreal.ca/testu01/tu01.html
    	t := (*[2]uint32)(unsafe.Pointer(&mp.cheaprand))
    	s1, s0 := t[0], t[1]
    	s1 ^= s1 << 17
    	s1 = s1 ^ s0 ^ s1>>7 ^ s0>>16
    	t[0], t[1] = s0, s1
    	return s0 + s1
    }
    
    // cheaprand64 is a non-cryptographic-quality 63-bit random generator
    // suitable for calling at very high frequency (such as during sampling decisions).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

    // * qn = quantized value for tensor n
    // * sn = scale for tensor n
    // * zn = zero point for tensor n
    //
    // r3 = r1 * r2
    //    = s1 (q1 - z1) * s2 (q2 - z2)
    //    = s1 s2 (q1 q2 - q1 z2 - q2 z1 + z1 z2)
    //
    // * z2 is zero, because it assumes symmetric quantization for the filter:
    //
    //    = s1 s2 (q1 q2 - q2 z1)
    //
    // In StableHLO text representation, the pattern is as the following
    // (simplified):
    //
    // ```
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  10. internal/mountinfo/mountinfo_linux.go

    	procMountsPath = "/proc/mounts"
    )
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    	s1, err := os.Lstat(path)
    	if err != nil {
    		return false
    	}
    
    	// A symlink can never be a mount point
    	if s1.Mode()&os.ModeSymlink != 0 {
    		return false
    	}
    
    	s2, err := os.Lstat(filepath.Dir(strings.TrimSuffix(path, "/")))
    	if err != nil {
    		return false
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
Back to top