Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for 1e15 (0.04 sec)

  1. src/runtime/netpoll_windows.go

    		return gList{}, 0
    	}
    
    	var entries [64]overlappedEntry
    	var wait uint32
    	var toRun gList
    	mp := getg().m
    
    	if delay >= 1e15 {
    		// An arbitrary cap on how long to wait for a timer.
    		// 1e15 ns == ~11.5 days.
    		delay = 1e15
    	}
    
    	if delay > 0 && mp.waitIocpHandle != 0 {
    		// GetQueuedCompletionStatusEx doesn't use a high resolution timer internally,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. test/fixedbugs/issue43480.go

    // Issue #43480: ICE on large uint64 constants in switch cases.
    
    package main
    
    func isPow10(x uint64) bool {
    	switch x {
    	case 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
    		1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19:
    		return true
    	}
    	return false
    }
    
    func main() {
    	var x uint64 = 1
    
    	for {
    		if !isPow10(x) || isPow10(x-1) || isPow10(x+1) {
    			panic(x)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 04 10:30:07 UTC 2021
    - 626 bytes
    - Viewed (0)
  3. src/math/pow10.go

    package math
    
    // pow10tab stores the pre-computed values 10**i for i < 32.
    var pow10tab = [...]float64{
    	1e00, 1e01, 1e02, 1e03, 1e04, 1e05, 1e06, 1e07, 1e08, 1e09,
    	1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,
    	1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29,
    	1e30, 1e31,
    }
    
    // pow10postab32 stores the pre-computed value for 10**(i*32) at index i.
    var pow10postab32 = [...]float64{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. src/strconv/atof.go

    	}
    	return bits, overflow
    }
    
    // Exact powers of 10.
    var float64pow10 = []float64{
    	1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
    	1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,
    	1e20, 1e21, 1e22,
    }
    var float32pow10 = []float32{1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10}
    
    // If possible to convert decimal representation to 64-bit float f exactly,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  5. src/runtime/netpoll_epoll.go

    	var waitms int32
    	if delay < 0 {
    		waitms = -1
    	} else if delay == 0 {
    		waitms = 0
    	} else if delay < 1e6 {
    		waitms = 1
    	} else if delay < 1e15 {
    		waitms = int32(delay / 1e6)
    	} else {
    		// An arbitrary cap on how long to wait for a timer.
    		// 1e9 ms == ~11.5 days.
    		waitms = 1e9
    	}
    	var events [128]syscall.EpollEvent
    retry:
    	n, errno := syscall.EpollWait(epfd, events[:], int32(len(events)), waitms)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/runtime/netpoll_aix.go

    	} else if delay == 0 {
    		// TODO: call poll with timeout == 0
    		return gList{}, 0
    	} else if delay < 1e6 {
    		timeout = 1
    	} else if delay < 1e15 {
    		timeout = uintptr(delay / 1e6)
    	} else {
    		// An arbitrary cap on how long to wait for a timer.
    		// 1e9 ms == ~11.5 days.
    		timeout = 1e9
    	}
    retry:
    	lock(&mtxpoll)
    	lock(&mtxset)
    	pendingUpdates = 0
    	unlock(&mtxpoll)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/log/slog/value_test.go

    	}
    }
    
    func TestValueTime(t *testing.T) {
    	// Validate that all representations of times work correctly.
    	for _, tm := range []time.Time{
    		time.Time{},
    		time.Unix(0, 1e15), // UnixNanos is defined
    		time.Date(2300, 1, 1, 0, 0, 0, 0, time.UTC), // overflows UnixNanos
    	} {
    		got := TimeValue(tm).Time()
    		if !got.Equal(tm) {
    			t.Errorf("got %s (%#[1]v), want %s (%#[2]v)", got, tm)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    		{"GCU", []string{"gcu"}, 1},
    		{"k*GCU", []string{"kilogcu"}, 1e3},
    		{"M*GCU", []string{"megagcu"}, 1e6},
    		{"G*GCU", []string{"gigagcu"}, 1e9},
    		{"T*GCU", []string{"teragcu"}, 1e12},
    		{"P*GCU", []string{"petagcu"}, 1e15},
    	},
    	DefaultUnit: Unit{"GCU", []string{}, 1.0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. src/strconv/ftoaryu.go

    	// Proceed to the requested number of digits
    	formatDecimal(d, di, !d0, roundUp, prec)
    	// Adjust exponent
    	d.dp -= q
    }
    
    var uint64pow10 = [...]uint64{
    	1, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
    	1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,
    }
    
    // formatDecimal fills d with at most prec decimal digits
    // of mantissa m. The boolean trunc indicates whether m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  10. src/strconv/eisel_lemire.go

    	{0x0000000000000000, 0x9502F90000000000}, // 1e10
    	{0x0000000000000000, 0xBA43B74000000000}, // 1e11
    	{0x0000000000000000, 0xE8D4A51000000000}, // 1e12
    	{0x0000000000000000, 0x9184E72A00000000}, // 1e13
    	{0x0000000000000000, 0xB5E620F480000000}, // 1e14
    	{0x0000000000000000, 0xE35FA931A0000000}, // 1e15
    	{0x0000000000000000, 0x8E1BC9BF04000000}, // 1e16
    	{0x0000000000000000, 0xB1A2BC2EC5000000}, // 1e17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 41.4K bytes
    - Viewed (0)
Back to top