Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Src3 (0.04 sec)

  1. test/typeparam/issue47878.go

    package main
    
    type Src1[T any] func() Src1[T]
    
    func (s *Src1[T]) Next() {
    	*s = (*s)()
    }
    
    type Src2[T any] []func() Src2[T]
    
    func (s Src2[T]) Next() {
    	_ = s[0]()
    }
    
    type Src3[T comparable] map[T]func() Src3[T]
    
    func (s Src3[T]) Next() {
    	var a T
    	_ = s[a]()
    }
    
    type Src4[T any] chan func() T
    
    func (s Src4[T]) Next() {
    	_ = (<-s)()
    }
    
    type Src5[T any] func() Src5[T]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 802 bytes
    - Viewed (0)
  2. pkg/util/slice/slice_test.go

    	if !reflect.DeepEqual(src2, dest2) {
    		t.Errorf("%v and %v are not equal", src2, dest2)
    	}
    
    	src3 := []string{"a", "c", "b"}
    	dest3 := CopyStrings(src3)
    
    	if !reflect.DeepEqual(src3, dest3) {
    		t.Errorf("%v and %v are not equal", src3, dest3)
    	}
    
    	src3[0] = "A"
    	if reflect.DeepEqual(src3, dest3) {
    		t.Errorf("CopyStrings didn't make a copy")
    	}
    }
    
    func TestSortStrings(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 30 07:21:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. src/crypto/md5/md5block_arm.s

    	ROUND4(Rb, Rc, Rd, Ra, 13, 21, Rc3)
    
    	MOVM.IA.W (Rtable), [Rc0,Rc1,Rc2,Rc3]
    	ROUND4(Ra, Rb, Rc, Rd,  4,	6, Rc0)
    	ROUND4(Rd, Ra, Rb, Rc, 11, 10, Rc1)
    	ROUND4(Rc, Rd, Ra, Rb,  2, 15, Rc2)
    	ROUND4(Rb, Rc, Rd, Ra,  9, 21, Rc3)
    
    	MOVW	dig+0(FP), Rt0
    	MOVM.IA (Rt0), [Rc0,Rc1,Rc2,Rc3]
    
    	ADD	Rc0, Ra
    	ADD	Rc1, Rb
    	ADD	Rc2, Rc
    	ADD	Rc3, Rd
    
    	MOVM.IA [Ra,Rb,Rc,Rd], (Rt0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. src/internal/gover/gover_test.go

    var langTests = []testCase1[string, string]{
    	{"1.2rc3", "1.2"},
    	{"1.2.3", "1.2"},
    	{"1.2", "1.2"},
    	{"1", "1"},
    	{"1.999testmod", "1.999"},
    }
    
    func TestIsLang(t *testing.T) { test1(t, isLangTests, "IsLang", IsLang) }
    
    var isLangTests = []testCase1[string, bool]{
    	{"1.2rc3", false},
    	{"1.2.3", false},
    	{"1.999testmod", false},
    	{"1.22", true},
    	{"1.21", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/gover/gover_test.go

    var langTests = []testCase1[string, string]{
    	{"1.2rc3", "1.2"},
    	{"1.2.3", "1.2"},
    	{"1.2", "1.2"},
    	{"1", "1"},
    	{"1.999testmod", "1.999"},
    }
    
    func TestIsLang(t *testing.T) { test1(t, isLangTests, "IsLang", IsLang) }
    
    var isLangTests = []testCase1[string, bool]{
    	{"1.2rc3", false},
    	{"1.2.3", false},
    	{"1.999testmod", false},
    	{"1.22", true},
    	{"1.21", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/go/version/version_test.go

    var langTests = []testCase1[string, string]{
    	{"bad", ""},
    	{"go1.2rc3", "go1.2"},
    	{"go1.2.3", "go1.2"},
    	{"go1.2", "go1.2"},
    	{"go1", "go1"},
    	{"go222", "go222.0"},
    	{"go1.999testmod", "go1.999"},
    }
    
    func TestIsValid(t *testing.T) { test1(t, isValidTests, "IsValid", IsValid) }
    
    var isValidTests = []testCase1[string, bool]{
    	{"", false},
    	{"1.2.3", false},
    	{"go1.2rc3", true},
    	{"go1.2.3", true},
    	{"go1.999testmod", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 19:56:48 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. test/abi/bad_select_crash.go

    	var pad [16]uint64
    	pad[FailCount&0x1]++
    	rc0 := StructF2S0{F0: ArrayF2S1E1{New_3(float64(-0.4418990509835844))}}
    	rc1 := ArrayF2S2E1{StructF2S1{ /* _: "񊶿(z̽|" */ F1: "􂊇񊶿"}}
    	rc2 := int16(4162)
    	rc3 := float32(-7.667096e+37)
    	rc4 := int64(3202175648847048679)
    	p1f0c := uint8(57)
    	if p1 != p1f0c {
    		NoteFailureElem(9, 42, 2, "genChecker42", "parm", 1, 0, false, pad[0])
    		return
    	}
    	_ = uint16(10920)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 16 13:38:02 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  8. src/hash/crc32/crc32.go

    //
    //    // archAvailableIEEE reports whether an architecture-specific CRC32-IEEE
    //    // algorithm is available.
    //    archAvailableIEEE() bool
    //
    //    // archInitIEEE initializes the architecture-specific CRC3-IEEE algorithm.
    //    // It can only be called if archAvailableIEEE() returns true.
    //    archInitIEEE()
    //
    //    // archUpdateIEEE updates the given CRC32-IEEE. It can only be called if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. src/hash/crc32/crc32_amd64.s

    	CRC32B (SI), AX
    
    done:
    	MOVL AX, ret+32(FP)
    	RET
    
    // castagnoliSSE42Triple updates three (non-inverted) crcs with (24*rounds)
    // bytes from each buffer.
    //
    // func castagnoliSSE42Triple(
    //     crc1, crc2, crc3 uint32,
    //     a, b, c []byte,
    //     rounds uint32,
    // ) (retA uint32, retB uint32, retC uint32)
    TEXT ·castagnoliSSE42Triple(SB),NOSPLIT,$0
    	MOVL crcA+0(FP), AX
    	MOVL crcB+4(FP), CX
    	MOVL crcC+8(FP), DX
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 5.4K bytes
    - Viewed (0)
Back to top