Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for 1e9 (0.05 sec)

  1. 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)
  2. src/runtime/time_windows_386.s

    	MULL	CX
    	SHRL	$22, DX
    	MOVL	DX, BX
    	IMULL	$10000000, DX
    	MOVL	SI, CX
    	SUBL	DX, CX
    
    	// DI = sec/100 (still)
    	// BX = (nano/100%1e9)/1e7 = (nano/1e9)%100 = sec%100
    	// CX = (nano/100%1e9)%1e7 = (nano%1e9)/100 = nsec/100
    	// store nsec for return
    	IMULL	$100, CX
    	MOVL	CX, nsec+8(FP)
    
    	// DI = sec/100 (still)
    	// BX = sec%100
    	// construct DX:AX = 64-bit sec and store for return
    	MOVL	$0, DX
    	MOVL	$100, AX
    	MULL	DI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 17:19:45 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/image/names.go

    }
    
    func (c *Uniform) ColorModel() color.Model {
    	return c
    }
    
    func (c *Uniform) Convert(color.Color) color.Color {
    	return c.C
    }
    
    func (c *Uniform) Bounds() Rectangle { return Rectangle{Point{-1e9, -1e9}, Point{1e9, 1e9}} }
    
    func (c *Uniform) At(x, y int) color.Color { return c.C }
    
    func (c *Uniform) RGBA64At(x, y int) color.RGBA64 {
    	r, g, b, a := c.C.RGBA()
    	return color.RGBA64{uint16(r), uint16(g), uint16(b), uint16(a)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/syscall/timestruct.go

    func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
    
    // NsecToTimespec converts a number of nanoseconds into a [Timespec].
    func NsecToTimespec(nsec int64) Timespec {
    	sec := nsec / 1e9
    	nsec = nsec % 1e9
    	if nsec < 0 {
    		nsec += 1e9
    		sec--
    	}
    	return setTimespec(sec, nsec)
    }
    
    // TimevalToNsec returns the time stored in tv as nanoseconds.
    func TimevalToNsec(tv Timeval) int64 { return tv.Nano() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 958 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/timestruct.go

    func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
    
    // NsecToTimespec converts a number of nanoseconds into a Timespec.
    func NsecToTimespec(nsec int64) Timespec {
    	sec := nsec / 1e9
    	nsec = nsec % 1e9
    	if nsec < 0 {
    		nsec += 1e9
    		sec--
    	}
    	return setTimespec(sec, nsec)
    }
    
    // TimeToTimespec converts t into a Timespec.
    // On some 32-bit systems the range of valid Timespec values are smaller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/defs_openbsd_ppc64.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 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: Mon Oct 23 17:31:23 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/runtime/rand_test.go

    	{
    		x, y, z := fastrand(), fastrand(), fastrand()
    		if x == y && y == z {
    			t.Fatalf("fastrand three times = %#x, %#x, %#x, want different numbers", x, y, z)
    		}
    	}
    	{
    		x, y, z := fastrandn(1e9), fastrandn(1e9), fastrandn(1e9)
    		if x == y && y == z {
    			t.Fatalf("fastrandn three times = %#x, %#x, %#x, want different numbers", x, y, z)
    		}
    	}
    	{
    		x, y, z := fastrand64(), fastrand64(), fastrand64()
    		if x == y && y == z {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 23:44:31 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. 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)
Back to top