Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 185 for iota (0.07 sec)

  1. src/cmd/internal/obj/arm64/asm_arm64_test.go

    		{"VMOVD", testvmovd, 0x7040201008040201, 0},
    		{"VMOVQ", testvmovq, 0x7040201008040201, 0x3040201008040201},
    	}
    	for _, test := range tests {
    		gotA, gotB := test.vmovFunc()
    		if gotA != test.wantA || gotB != test.wantB {
    			t.Errorf("%v: got: a=0x%x, b=0x%x, want: a=0x%x, b=0x%x", test.op, gotA, gotB, test.wantA, test.wantB)
    		}
    	}
    }
    
    func testmovk() uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. src/os/executable_plan9.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build plan9
    
    package os
    
    import (
    	"internal/itoa"
    	"syscall"
    )
    
    func executable() (string, error) {
    	fn := "/proc/" + itoa.Itoa(Getpid()) + "/text"
    	f, err := Open(fn)
    	if err != nil {
    		return "", err
    	}
    	defer f.Close()
    	return syscall.Fd2path(int(f.Fd()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 427 bytes
    - Viewed (0)
  3. src/net/tcpsockopt_plan9.go

    // TCP socket options for plan9
    
    package net
    
    import (
    	"internal/itoa"
    	"syscall"
    	"time"
    )
    
    func setNoDelay(_ *netFD, _ bool) error {
    	return syscall.EPLAN9
    }
    
    // Set keep alive period.
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    
    	cmd := "keepalive " + itoa.Itoa(int(d/time.Millisecond))
    	_, e := fd.ctl.WriteAt([]byte(cmd), 0)
    	return e
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 762 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/teststdio/testdata/chain.go

    	for {
    		v := <-right
    		stdio.Stdout.WriteString(strconv.Itoa(v) + "\n")
    		left <- 1 + v
    	}
    }
    
    func main() {
    	leftmost := make(chan int)
    	var left chan int
    	right := leftmost
    	for i := 0; i < N; i++ {
    		left, right = right, make(chan int)
    		go link(left, right)
    	}
    	for i := 0; i < R; i++ {
    		right <- 0
    		x := <-leftmost
    		stdio.Stdout.WriteString(strconv.Itoa(x) + "\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 914 bytes
    - Viewed (0)
  5. test/typeparam/boundmethod.go

    // type StringInt[T Ints] T
    //
    // //go:noinline
    // func (m StringInt[T]) String() string {
    // 	return strconv.Itoa(int(m))
    // }
    
    type StringStruct[T Ints] struct {
    	f T
    }
    
    func (m StringStruct[T]) String() string {
    	return strconv.Itoa(int(m.f))
    }
    
    func main() {
    	x := []myint{myint(1), myint(2), myint(3)}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 14:29:30 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. test/typeparam/map.go

    func mapper[F, T any](s []F, f func(F) T) []T {
    	r := make([]T, len(s))
    	for i, v := range s {
    		r[i] = f(v)
    	}
    	return r
    }
    
    func main() {
    	got := mapper([]int{1, 2, 3}, strconv.Itoa)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	fgot := mapper([]float64{2.5, 2.3, 3.5}, func(f float64) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 885 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/doc.go

    // invalid code point, the conversion cannot be statically rejected.
    //
    // For conversions that intend on using the code point, consider replacing them
    // with string(rune(x)). Otherwise, strconv.Itoa and its equivalents return the
    // string representation of the value in the desired base.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 982 bytes
    - Viewed (0)
  8. src/cmd/covdata/argsmerge.go

    	}
    	if state.goarch != a.state.goarch {
    		a.state.goarch = ""
    	}
    }
    
    func (a *argstate) ArgsSummary() map[string]string {
    	m := make(map[string]string)
    	if len(a.state.osargs) != 0 {
    		m["argc"] = strconv.Itoa(len(a.state.osargs))
    		for k, a := range a.state.osargs {
    			m[fmt.Sprintf("argv%d", k)] = a
    		}
    	}
    	if a.state.goos != "" {
    		m["GOOS"] = a.state.goos
    	}
    	if a.state.goarch != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 10:18:37 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. src/os/user/cgo_lookup_unix.go

    	})
    	if err == syscall.ENOENT || (err == nil && !found) {
    		return nil, UnknownGroupIdError(strconv.Itoa(gid))
    	}
    	if err != nil {
    		return nil, fmt.Errorf("user: lookup groupid %d: %v", gid, err)
    	}
    	return buildGroup(&grp), nil
    }
    
    func buildGroup(grp *_C_struct_group) *Group {
    	g := &Group{
    		Gid:  strconv.Itoa(int(_C_gr_gid(grp))),
    		Name: _C_GoString(_C_gr_name(grp)),
    	}
    	return g
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/crypto/aes/cipher.go

    	enc [28 + 32]uint32
    	dec [28 + 32]uint32
    }
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/aes: invalid key size " + strconv.Itoa(int(k))
    }
    
    // NewCipher creates and returns a new [cipher.Block].
    // The key argument should be the AES key,
    // either 16, 24, or 32 bytes to select
    // AES-128, AES-192, or AES-256.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top