Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 128 for 1e9 (0.02 sec)

  1. src/syscall/syscall.go

    }
    
    // Nano returns the time stored in ts as nanoseconds.
    func (ts *Timespec) Nano() int64 {
    	return int64(ts.Sec)*1e9 + int64(ts.Nsec)
    }
    
    // Nano returns the time stored in tv as nanoseconds.
    func (tv *Timeval) Nano() int64 {
    	return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000
    }
    
    // Getpagesize and Exit are provided by the runtime.
    
    func Getpagesize() int
    func Exit(code int)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/runtime/lock_js.go

    	delay := int64(-1)
    	if pollUntil != 0 {
    		// round up to prevent setTimeout being called early
    		delay = (pollUntil-now-1)/1e6 + 1
    		if delay > 1e9 {
    			// An arbitrary cap on how long to wait for a timer.
    			// 1e9 ms == ~11.5 days.
    			delay = 1e9
    		}
    	}
    
    	if delay > 0 && (idleTimeout == nil || idleTimeout.diff(pollUntil) > 1e6) {
    		// If the difference is larger than 1 ms, we should reschedule the timeout.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. src/strconv/ftoaryu.go

    // avoiding runtime uint64 division on 32-bit platforms.
    func divmod1e9(x uint64) (uint32, uint32) {
    	if !host32bit {
    		return uint32(x / 1e9), uint32(x % 1e9)
    	}
    	// Use the same sequence of operations as the amd64 compiler.
    	hi, _ := bits.Mul64(x>>1, 0x89705f4136b4a598) // binary digits of 1e-9
    	q := hi >> 28
    	return uint32(q), uint32(x - q*1e9)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  4. src/time/time.go

    	default:
    		return -d
    	}
    }
    
    // Add returns the time t+d.
    func (t Time) Add(d Duration) Time {
    	dsec := int64(d / 1e9)
    	nsec := t.nsec() + int32(d%1e9)
    	if nsec >= 1e9 {
    		dsec++
    		nsec -= 1e9
    	} else if nsec < 0 {
    		dsec--
    		nsec += 1e9
    	}
    	t.wall = t.wall&^nsecMask | uint64(nsec) // update nsec
    	t.addSec(dsec)
    	if t.wall&hasMonotonic != 0 {
    		te := t.ext + int64(d)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  5. src/text/template/parse/parse_test.go

    	{"-73", true, false, true, false, -73, 0, -73, 0},
    	{"+73", true, false, true, false, 73, 0, 73, 0},
    	{"100", true, true, true, false, 100, 100, 100, 0},
    	{"1e9", true, true, true, false, 1e9, 1e9, 1e9, 0},
    	{"-1e9", true, false, true, false, -1e9, 0, -1e9, 0},
    	{"-1.2", false, false, true, false, 0, 0, -1.2, 0},
    	{"1e19", false, true, true, false, 0, 1e19, 1e19, 0},
    	{"1e1_9", false, true, true, false, 0, 1e19, 1e19, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. src/runtime/netpoll_aix.go

    		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)
    
    	n, e := poll(&pfds[0], uintptr(len(pfds)), timeout)
    	if n < 0 {
    		if e != _EINTR {
    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/cmd/go/testdata/script/test_regexps.txt

    ! stdout 'BenchmarkXX\s+\d+'
    
    # BenchmarkX/Y is run in full twice due to -count=2.
    # "Run in full" means that it runs for approximately the default benchtime,
    # but may cap out at N=1e9.
    # We don't actually care what the final iteration count is, but it should be
    # a large number, and the last iteration count prints right before the results.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds.go

    // rather than amount of work done since process start.
    func SeatsTimesDuration(seats float64, duration time.Duration) SeatSeconds {
    	return SeatSeconds(int64(math.Round(seats * float64(duration/time.Nanosecond) / (1e9 / ssScale))))
    }
    
    // ToFloat converts to a floating-point representation.
    // This conversion may lose precision.
    func (ss SeatSeconds) ToFloat() float64 {
    	return float64(ss) / ssScale
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 09:16:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/runtime/defs_openbsd_386.go

    	ss_size  uintptr
    	ss_flags int32
    }
    
    type timespec struct {
    	tv_sec  int64
    	tv_nsec int32
    }
    
    //go:nosplit
    func (ts *timespec) setNsec(ns int64) {
    	ts.tv_sec = int64(timediv(ns, 1e9, &ts.tv_nsec))
    }
    
    type timeval struct {
    	tv_sec  int64
    	tv_usec int32
    }
    
    func (tv *timeval) set_usec(x int32) {
    	tv.tv_usec = x
    }
    
    type itimerval struct {
    	it_interval timeval
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:23 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. test/convlit.go

    var bad7 int = 1e100     // ERROR "overflow|truncated to int|truncated"
    var bad8 float32 = 1e200 // ERROR "overflow"
    
    // but these implicit conversions are okay
    var good1 string = "a"
    var good2 int = 1.0
    var good3 int = 1e9
    var good4 float64 = 1e20
    
    // explicit conversion of string is okay
    var _ = []rune("abc")
    var _ = []byte("abc")
    
    // implicit is not
    var _ []int = "abc"  // ERROR "cannot use|incompatible|invalid|cannot convert"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 2.4K bytes
    - Viewed (0)
Back to top