- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 121 for iota (0.05 sec)
-
src/cmd/compile/internal/ssa/fuse.go
// fuseLate runs fuse(f, fuseTypePlain|fuseTypeIf|fuseTypeBranchRedirect). func fuseLate(f *Func) { fuse(f, fuseTypePlain|fuseTypeIf|fuseTypeBranchRedirect) } type fuseType uint8 const ( fuseTypePlain fuseType = 1 << iota fuseTypeIf fuseTypeIntInRange fuseTypeBranchRedirect fuseTypeShortCircuit ) // fuse simplifies control flow by joining basic blocks. func fuse(f *Func, typ fuseType) { for changed := true; changed; {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 9K bytes - Viewed (0) -
src/compress/lzw/reader.go
"errors" "fmt" "io" ) // Order specifies the bit ordering in an LZW data stream. type Order int const ( // LSB means Least Significant Bits first, as used in the GIF file format. LSB Order = iota // MSB means Most Significant Bits first, as used in the TIFF and PDF // file formats. MSB ) const ( maxWidth = 12 decoderInvalidCode = 0xffff flushBuffer = 1 << maxWidth )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:39 UTC 2023 - 8K bytes - Viewed (0) -
src/internal/itoa/itoa.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Simple conversions to avoid depending on strconv. package itoa // Itoa converts val to a decimal string. func Itoa(val int) string { if val < 0 { return "-" + Uitoa(uint(-val)) } return Uitoa(uint(val)) } // Uitoa converts val to a decimal string. func Uitoa(val uint) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 02:53:50 UTC 2023 - 1.1K bytes - Viewed (0) -
src/strconv/itoa.go
if fastSmalls && 0 <= i && i < nSmalls && base == 10 { return small(int(i)) } _, s := formatBits(nil, uint64(i), base, i < 0, false) return s } // Itoa is equivalent to [FormatInt](int64(i), 10). func Itoa(i int) string { return FormatInt(int64(i), 10) } // AppendInt appends the string form of the integer i, // as generated by [FormatInt], to dst and returns the extended buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 5.3K bytes - Viewed (0) -
src/net/dnsclient.go
ip := ParseIP(addr) if ip == nil { return "", &DNSError{Err: "unrecognized address", Name: addr} } if ip.To4() != nil { return itoa.Uitoa(uint(ip[15])) + "." + itoa.Uitoa(uint(ip[14])) + "." + itoa.Uitoa(uint(ip[13])) + "." + itoa.Uitoa(uint(ip[12])) + ".in-addr.arpa.", nil } // Must be IPv6 buf := make([]byte, 0, len(ip)*4+len("ip6.arpa.")) // Add it, in reverse, to the buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
src/net/http/mapping_test.go
"strconv" "testing" ) func TestMapping(t *testing.T) { var m mapping[int, string] for i := 0; i < maxSlice; i++ { m.add(i, strconv.Itoa(i)) } if m.m != nil { t.Fatal("m.m != nil") } for i := 0; i < maxSlice; i++ { g, _ := m.find(i) w := strconv.Itoa(i) if g != w { t.Fatalf("%d: got %s, want %s", i, g, w) } } m.add(4, "4") if m.s != nil { t.Fatal("m.s != nil") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 17:47:07 UTC 2023 - 2.9K bytes - Viewed (0) -
src/strconv/doc.go
// of basic data types. // // # Numeric Conversions // // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string). // // i, err := strconv.Atoi("-42") // s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0) -
src/crypto/tls/alert.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 4.3K bytes - Viewed (0) -
src/math/big/intconv.go
if x == nil { return "<nil>" } return string(x.abs.itoa(x.neg, base)) } // Append appends the string representation of x, as generated by // x.Text(base), to buf and returns the extended buffer. func (x *Int) Append(buf []byte, base int) []byte { if x == nil { return append(buf, "<nil>"...) } return append(buf, x.abs.itoa(x.neg, base)...) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.7K bytes - Viewed (0) -
src/strconv/atoi.go
} func baseError(fn, str string, base int) *NumError { return &NumError{fn, stringslite.Clone(str), errors.New("invalid base " + Itoa(base))} } func bitSizeError(fn, str string, bitSize int) *NumError { return &NumError{fn, stringslite.Clone(str), errors.New("invalid bit size " + Itoa(bitSize))} } const intSize = 32 << (^uint(0) >> 63) // IntSize is the size in bits of an int or uint value. const IntSize = intSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:26 UTC 2024 - 8.3K bytes - Viewed (0)