Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 311 for S1 (0.02 sec)

  1. src/io/fs/readfile_test.go

    }
    
    func TestReadFilePath(t *testing.T) {
    	fsys := os.DirFS(t.TempDir())
    	_, err1 := ReadFile(fsys, "non-existent")
    	_, err2 := ReadFile(struct{ FS }{fsys}, "non-existent")
    	if s1, s2 := errorPath(err1), errorPath(err2); s1 != s2 {
    		t.Fatalf("s1: %s != s2: %s", s1, s2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/linalg.go

    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    		panic("DotProduct: slices of unequal length")
    	}
    	var r T
    	for i := range s1 {
    		r += s1[i] * s2[i]
    	}
    	return r
    }
    
    // NumericAbs matches numeric types with an Abs method.
    type NumericAbs[T any] interface {
    	Numeric
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchyTest.groovy

            expect:
            def s1 = updateDir(single, dir2)
            assertDirectorySnapshot(s1, dir1)
            assertDirectorySnapshot(s1, child)
            assertDirectorySnapshot(s1, dir2)
            assertHasNoMetadata(s1, dir3)
            assertHasNoMetadata(s1, tooFew)
            assertHasNoMetadata(s1, tooMany)
            assertPartialDirectoryNode(s1, parent)
            flatten(s1) == [parent.path, "1:dir1", "2:child1", "1:dir2"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  4. src/crypto/sha256/sha256block_amd64.s

    	;                                     \
    	XORL     y1, y0;                      \ // y0 = (e>>25) ^ (e>>11)					// S1
    	XORL     g, y2;                       \ // y2 = f^g	// CH
    	VPADDD   XDWORD0, XTMP0, XTMP0;       \ // XTMP0 = W[-7] + W[-16]	// y1 = (e >> 6)	// S1
    	RORXL    $6, e, y1;                   \ // y1 = (e >> 6)						// S1
    	;                                     \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  5. src/internal/coverage/slicereader/slr_test.go

    	e64 := uint64(907050301)
    	binary.LittleEndian.PutUint64(bt, e64)
    	b = append(b, bt...)
    
    	b = appendUleb128(b, uint(e32))
    	b = appendUleb128(b, uint(e64))
    	b = appendUleb128(b, 6)
    	s1 := "foobar"
    	s1b := []byte(s1)
    	b = append(b, s1b...)
    	b = appendUleb128(b, 9)
    	s2 := "bazbasher"
    	s2b := []byte(s2)
    	b = append(b, s2b...)
    
    	readStr := func(slr *Reader) string {
    		len := slr.ReadULEB128()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loadmacho/ldmacho.go

    			// assign sizes, now that we know symbols in sorted order.
    			for s1 := bld.Sub(); s1 != 0; s1 = l.SubSym(s1) {
    				s1Bld := l.MakeSymbolUpdater(s1)
    				if sub := l.SubSym(s1); sub != 0 {
    					s1Bld.SetSize(l.SymValue(sub) - l.SymValue(s1))
    				} else {
    					dlen := int64(len(l.Data(s)))
    					s1Bld.SetSize(l.SymValue(s) + dlen - l.SymValue(s1))
    				}
    			}
    		}
    
    		if bld.Type() == sym.STEXT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  7. tensorflow/cc/experimental/libtf/impl/string_test.cc

    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(StringTest, TestBasicInterning) {
      String s1("foo");
      String s2("foo");
      EXPECT_EQ(&s1.str(), &s2.str());
    }
    
    }  // namespace impl
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 30 17:28:28 UTC 2021
    - 1002 bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/cycles0.go

    	A3 [10]A4
    	A4 A2
    
    	A5 [10]A6
    	A6 *A5
    
    	// slices
    	L0 []L0
    
    	// structs
    	S0 /* ERROR "invalid recursive type: S0 refers to itself" */ struct{ _ S0 }
    	S1 /* ERROR "invalid recursive type: S1 refers to itself" */ struct{ S1 }
    	S2 struct{ _ *S2 }
    	S3 struct{ *S3 }
    
    	S4 /* ERROR "invalid recursive type" */ struct{ S5 }
    	S5 struct{ S6 }
    	S6 S4
    
    	// pointers
    	P0 *P0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue51257.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func f[_ comparable]() {}
    
    type S1 struct{ x int }
    type S2 struct{ x any }
    type S3 struct{ x [10]interface{ m() } }
    
    func _[P1 comparable, P2 S2]() {
    	_ = f[S1]
    	_ = f[S2]
    	_ = f[S3]
    
    	type L1 struct { x P1 }
    	type L2 struct { x P2 }
    	_ = f[L1]
    	_ = f[L2 /* ERROR "L2 does not satisfy comparable" */ ]
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 766 bytes
    - Viewed (0)
  10. test/fixedbugs/issue65893.go

    // compile
    
    // Copyright 2024 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.
    
    package p
    
    type (
    	s  = struct{ f func(s1) }
    	s1 = struct{ i I }
    )
    
    type I interface {
    	S() *s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 01:45:48 UTC 2024
    - 269 bytes
    - Viewed (0)
Back to top