- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 121 for iota (0.1 sec)
-
src/reflect/benchmark_test.go
var cases []SelectCase for i := 0; i < 8; i++ { cases = append(cases, SelectCase{ Dir: SelectRecv, Chan: ValueOf(channel), }) } for _, numCases := range []int{1, 4, 8} { b.Run(strconv.Itoa(numCases), func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { _, _, _ = Select(cases[:numCases]) } }) } } func BenchmarkCall(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
src/internal/buildcfg/cfg.go
return int(defaultGOAMD64[len("v")] - '0') } type goarmFeatures struct { Version int SoftFloat bool } func (g goarmFeatures) String() string { armStr := strconv.Itoa(g.Version) if g.SoftFloat { armStr += ",softfloat" } else { armStr += ",hardfloat" } return armStr } func goarm() (g goarmFeatures) { const ( softFloatOpt = ",softfloat"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 9.5K bytes - Viewed (0) -
src/internal/concurrent/hashtriemap_test.go
gmp := runtime.GOMAXPROCS(-1) var wg sync.WaitGroup for i := range gmp { wg.Add(1) go func(id int) { defer wg.Done() makeKey := func(s string) string { return s + "-" + strconv.Itoa(id) } for _, s := range testData { key := makeKey(s) expectMissing(t, key, 0)(m.Load(key)) expectStored(t, key, id)(m.LoadOrStore(key, id)) expectPresent(t, key, id)(m.Load(key))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
src/crypto/rc4/rc4.go
type Cipher struct { s [256]uint32 i, j uint8 } type KeySizeError int func (k KeySizeError) Error() string { return "crypto/rc4: invalid key size " + strconv.Itoa(int(k)) } // NewCipher creates and returns a new [Cipher]. The key argument should be the // RC4 key, at least 1 byte and at most 256 bytes. func NewCipher(key []byte) (*Cipher, error) { k := len(key)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 1.9K bytes - Viewed (0) -
src/log/slog/record_test.go
} // Currently, pc(2) takes over 400ns, which is too expensive // to call it for every log message. func BenchmarkPC(b *testing.B) { for depth := 0; depth < 5; depth++ { b.Run(strconv.Itoa(depth), func(b *testing.B) { b.ReportAllocs() var x uintptr for i := 0; i < b.N; i++ { x = callerPC(depth) } _ = x }) } } func BenchmarkRecord(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 15:10:55 UTC 2023 - 4K bytes - Viewed (0)