Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 185 for iota (0.05 sec)

  1. src/runtime/traceevent.go

    //     are suffixes reserved for scheduling resources.
    //
    // NOTE: If you add an event type, make sure you also update all
    // tables in this file!
    type traceEv uint8
    
    const (
    	traceEvNone traceEv = iota // unused
    
    	// Structural events.
    	traceEvEventBatch // start of per-M batch of events [generation, M ID, timestamp, batch length]
    	traceEvStacks     // start of a section of the stack table [...traceEvStack]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/time/zoneinfo_js.go

    	// Hence, we construct the name from the offset.
    	z.name = "UTC"
    	if offset < 0 {
    		z.name += "-"
    		offset *= -1
    	} else {
    		z.name += "+"
    	}
    	z.name += itoa.Itoa(offset / 60)
    	min := offset % 60
    	if min != 0 {
    		z.name += ":" + itoa.Itoa(min)
    	}
    	localLoc.zone = []zone{z}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 29 20:05:34 UTC 2022
    - 1K bytes
    - Viewed (0)
  7. src/log/log_test.go

    func BenchmarkItoa(b *testing.B) {
    	dst := make([]byte, 0, 64)
    	for i := 0; i < b.N; i++ {
    		dst = dst[0:0]
    		itoa(&dst, 2015, 4)   // year
    		itoa(&dst, 1, 2)      // month
    		itoa(&dst, 30, 2)     // day
    		itoa(&dst, 12, 2)     // hour
    		itoa(&dst, 56, 2)     // minute
    		itoa(&dst, 0, 2)      // second
    		itoa(&dst, 987654, 6) // microsecond
    	}
    }
    
    func BenchmarkPrintln(b *testing.B) {
    	const testString = "test"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. src/internal/fuzz/mutator_test.go

    	os.Setenv("GODEBUG", fmt.Sprintf("%s,fuzzseed=123", origEnv))
    	m := newMutator()
    
    	for _, size := range []int{
    		1,
    		10,
    		100,
    		1000,
    		10000,
    		100000,
    	} {
    		b.Run(strconv.Itoa(size), func(b *testing.B) {
    			buf := make([]byte, size)
    			b.ResetTimer()
    
    			for i := 0; i < b.N; i++ {
    				// resize buffer to the correct shape and reset the PCG
    				buf = buf[0:size]
    				m.r = newPcgRand()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top