Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for 1e9 (0.06 sec)

  1. test/fixedbugs/bug402.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    var a = []int64{
    	0.0005 * 1e9,
    	0.001 * 1e9,
    	0.005 * 1e9,
    	0.01 * 1e9,
    	0.05 * 1e9,
    	0.1 * 1e9,
    	0.5 * 1e9,
    	1 * 1e9,
    	5 * 1e9,
    }
    
    func main() {
    	s := ""
    	for _, v := range a {
    		s += fmt.Sprint(v) + " "
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 518 bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/histogram_test.go

    		2:                 float64(0x040) / 1e9,
    		3:                 float64(0x080) / 1e9,
    		4:                 float64(0x0c0) / 1e9,
    		5:                 float64(0x100) / 1e9,
    		6:                 float64(0x140) / 1e9,
    		7:                 float64(0x180) / 1e9,
    		8:                 float64(0x1c0) / 1e9,
    		9:                 float64(0x200) / 1e9,
    		10:                float64(0x280) / 1e9,
    		11:                float64(0x300) / 1e9,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:01 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. test/fixedbugs/issue20739.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func F() {
    	var x struct {
    		x *int
    		w [1e9][1e9][1e9][0]*int
    		y *int
    	}
    	println(&x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:11:52 UTC 2017
    - 273 bytes
    - Viewed (0)
  9. src/sort/search_test.go

    	{"1 true", 1, func(i int) bool { return true }, 0},
    	{"1 false", 1, func(i int) bool { return false }, 1},
    	{"1e9 991", 1e9, func(i int) bool { return i >= 991 }, 991},
    	{"1e9 true", 1e9, func(i int) bool { return true }, 0},
    	{"1e9 false", 1e9, func(i int) bool { return false }, 1e9},
    	{"data -20", len(data), f(data, -20), 0},
    	{"data -10", len(data), f(data, -10), 0},
    	{"data -9", len(data), f(data, -9), 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  10. src/archive/tar/strconv_test.go

    		{1350244992, 23960108, "1350244992.023960108"},
    		{+1, +1e9 - 1e0, "1.999999999"},
    		{+1, +1e9 - 1e3, "1.999999"},
    		{+1, +1e9 - 1e6, "1.999"},
    		{+1, +0e0 - 0e0, "1"},
    		{+1, +1e6 - 0e0, "1.001"},
    		{+1, +1e3 - 0e0, "1.000001"},
    		{+1, +1e0 - 0e0, "1.000000001"},
    		{0, 1e9 - 1e0, "0.999999999"},
    		{0, 1e9 - 1e3, "0.999999"},
    		{0, 1e9 - 1e6, "0.999"},
    		{0, 0e0, "0"},
    		{0, 1e6 + 0e0, "0.001"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
Back to top