- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for 1e9 (0.02 sec)
-
src/strconv/itoa.go
if host32bit { // convert the lower digits using 32bit operations for u >= 1e9 { // Avoid using r = a%b in addition to q = a/b // since 64bit division and modulo operations // are calculated by runtime functions on 32bit machines. q := u / 1e9 us := uint(u - q*1e9) // u % 1e9 fits into a uint for j := 4; j > 0; j-- { is := us % 100 * 2 us /= 100 i -= 2
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/runtime/vdso_freebsd.go
if bt == zeroBintime { return fallback_nanotime() } return int64((1e9 * uint64(bt.sec)) + ((1e9 * uint64(bt.frac>>32)) >> 32)) } func walltime() (sec int64, nsec int32) { bt := vdsoClockGettime(_CLOCK_REALTIME) if bt == zeroBintime { return fallback_walltime() } return int64(bt.sec), int32((1e9 * uint64(bt.frac>>32)) >> 32)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.4K bytes - Viewed (0) -
src/runtime/defs_dragonfly_amd64.go
uc_stack stackt __spare__ [8]int32 } type timespec struct { tv_sec int64 tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type timeval struct { tv_sec int64 tv_usec int64 } func (tv *timeval) set_usec(x int32) { tv.tv_usec = int64(x) } type itimerval struct { it_interval timeval
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 3.5K bytes - Viewed (0) -
src/runtime/netpoll_epoll.go
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) if errno != 0 { if errno != _EINTR {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 4.6K bytes - Viewed (0) -
src/runtime/defs_darwin_amd64.go
it_interval timeval it_value timeval } type timespec struct { tv_sec int64 tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type fpcontrol struct { pad_cgo_0 [2]byte } type fpstatus struct { pad_cgo_0 [2]byte } type regmmst struct { mmst_reg [10]int8 mmst_rsrv [6]int8 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 6.4K bytes - Viewed (0) -
src/runtime/time_test.go
t.Fatal(err2) } const time0 = 1257894000000000000 got := [][]fakeTimeFrame{f1, f2} var want = [][]fakeTimeFrame{{ {time0 + 1, "line 2\n"}, {time0 + 1, "line 3\n"}, {time0 + 1e9, "line 5\n"}, {time0 + 1e9, "2009-11-10T23:00:01Z"}, }, { {time0, "line 1\n"}, {time0 + 2, "line 4\n"}, }} if !reflect.DeepEqual(want, got) { t.Fatalf("want %v, got %v", want, got) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 03:40:04 UTC 2024 - 3.1K bytes - Viewed (0) -
src/runtime/defs1_netbsd_arm64.go
ss_sp uintptr ss_size uintptr ss_flags int32 } type timespec struct { tv_sec int64 tv_nsec int64 } func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type timeval struct { tv_sec int64 tv_usec int32 _ [4]byte // EABI } func (tv *timeval) set_usec(x int32) { tv.tv_usec = x } type itimerval struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 3.3K bytes - Viewed (0) -
src/runtime/defs1_netbsd_amd64.go
ss_flags int32 pad_cgo_0 [4]byte } type timespec struct { tv_sec int64 tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type timeval struct { tv_sec int64 tv_usec int32 pad_cgo_0 [4]byte } func (tv *timeval) set_usec(x int32) { tv.tv_usec = x } type itimerval struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 3.2K bytes - Viewed (0) -
src/runtime/tracetime.go
return uint64(ticksPerSecond() / traceTimeDiv) } // Our clock is nanotime, so it's just the constant time division. // (trace clock units / nanoseconds) * (1e9 nanoseconds / 1 second) return uint64(1.0 / float64(traceTimeDiv) * 1e9) } // traceFrequency writes a batch with a single EvFrequency event. // // freq is the number of trace clock units per second. func traceFrequency(gen uintptr) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 3.3K bytes - Viewed (0) -
src/runtime/time_fake.go
} //go:linkname nanotime //go:nosplit func nanotime() int64 { return faketime } //go:linkname time_now time.now func time_now() (sec int64, nsec int32, mono int64) { return faketime / 1e9, int32(faketime % 1e9), faketime } // write is like the Unix write system call. // We have to avoid write barriers to avoid potential deadlock // on write calls. // //go:nowritebarrierrec
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:15:13 UTC 2024 - 2.5K bytes - Viewed (0)