Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for c1e3 (0.41 sec)

  1. test/const.go

    	f3div2          = 3. / 2.
    	f1e3    float64 = 1e3
    )
    
    func assert(t bool, s string) {
    	if !t {
    		panic(s)
    	}
    }
    
    func ints() {
    	assert(c0 == 0, "c0")
    	assert(c1 == 1, "c1")
    	assert(chuge > chuge_1, "chuge")
    	assert(chuge_1+1 == chuge, "chuge 1")
    	assert(chuge+cm1+1 == chuge, "cm1")
    	assert(c3div2 == 1, "3/2")
    	assert(c1e3 == 1000, "c1e3 int")
    	assert(c1e3 == 1e3, "c1e3 float")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 26 23:54:29 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue7746.go

    	c3   = c2 * c2 // GC_ERROR "overflow"
    	c4   = c3 * c3
    	c5   = c4 * c4
    	c6   = c5 * c5
    	c7   = c6 * c6
    	c8   = c7 * c7
    	c9   = c8 * c8
    	c10  = c9 * c9
    	c11  = c10 * c10
    	c12  = c11 * c11
    	c13  = c12 * c12
    	c14  = c13 * c13 // GCCGO_ERROR "overflow"
    	c15  = c14 * c14
    	c16  = c15 * c15
    	c17  = c16 * c16
    	c18  = c17 * c17
    	c19  = c18 * c18
    	c20  = c19 * c19
    	c21  = c20 * c20
    	c22  = c21 * c21
    	c23  = c22 * c22
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  3. src/archive/tar/strconv_test.go

    		{+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"},
    		{0, 1e3 + 0e0, "0.000001"},
    		{0, 1e0 + 0e0, "0.000000001"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
  4. src/runtime/tls_arm.s

    	// To make stack unwinding work, this function should NOT be marked as NOFRAME,
    	// as it may contain a call, which clobbers LR even just temporarily.
    	MRC	15, 0, R0, C13, C0, 3 // fetch TLS base pointer
    	BIC $3, R0 // Darwin/ARM might return unaligned pointer
    	MOVW	runtimeĀ·tls_g(SB), R11
    	ADD	R11, R0
    	MOVW	g, 0(R0)
    	MOVW	g, R0 // preserve R0 across call to setg<>
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:38:07 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/cgo.go

    	fmt.Printf("OK\n")
    }
    
    func CgoCheckBytes() {
    	try, _ := strconv.Atoi(os.Getenv("GO_CGOCHECKBYTES_TRY"))
    	if try <= 0 {
    		try = 1
    	}
    	b := make([]byte, 1e6*try)
    	start := time.Now()
    	for i := 0; i < 1e3*try; i++ {
    		C.foo2(unsafe.Pointer(&b[0]))
    		if time.Since(start) > time.Second {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  6. src/internal/types/testdata/spec/range_int.go

    	for i := range 'a' {
    		var _ *rune = &i // ensure i has type rune
    	}
    }
    
    func issue66561() {
    	for range 10.0 /* ERROR "cannot range over 10.0 (untyped float constant 10)" */ {
    	}
    	for range 1e3 /* ERROR "cannot range over 1e3 (untyped float constant 1000)" */ {
    	}
    	for range 1 /* ERROR "cannot range over 1 + 0i (untyped complex constant (1 + 0i))" */ + 0i {
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:56:00 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. src/math/big/decimal_test.go

    			var d decimal
    			d.init(natOne, shift)
    			sink = d.String()
    		}
    	}
    }
    
    func BenchmarkFloatString(b *testing.B) {
    	x := new(Float)
    	for _, prec := range []uint{1e2, 1e3, 1e4, 1e5} {
    		x.SetPrec(prec).SetRat(NewRat(1, 3))
    		b.Run(fmt.Sprintf("%v", prec), func(b *testing.B) {
    			b.ReportAllocs()
    			for i := 0; i < b.N; i++ {
    				sink = x.String()
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 05:54:35 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  8. src/runtime/sys_windows_arm.s

    	MOVW	R0, 12(R4)		// save return value to libcall->r1
    	MOVW	R1, 16(R4)
    
    	// GetLastError
    	MRC	15, 0, R1, C13, C0, 2
    	MOVW	0x34(R1), R0
    	MOVW	R0, 20(R4)		// store in libcall->err
    
    	MOVM.IA.W (R13), [R4, R5, R15]
    
    TEXT runtimeĀ·getlasterror(SB),NOSPLIT,$0
    	MRC	15, 0, R0, C13, C0, 2
    	MOVW	0x34(R0), R0
    	MOVW	R0, ret+0(FP)
    	RET
    
    // Called by Windows as a Vectored Exception Handler (VEH).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  9. src/math/big/arith_test.go

    func rndV(n int) []Word {
    	v := make([]Word, n)
    	for i := range v {
    		v[i] = rndW()
    	}
    	return v
    }
    
    var benchSizes = []int{1, 2, 3, 4, 5, 1e1, 1e2, 1e3, 1e4, 1e5}
    
    func BenchmarkAddVV(b *testing.B) {
    	for _, n := range benchSizes {
    		if isRaceBuilder && n > 1e3 {
    			continue
    		}
    		x := rndV(n)
    		y := rndV(n)
    		z := make([]Word, n)
    		b.Run(fmt.Sprint(n), func(b *testing.B) {
    			b.SetBytes(int64(n * _W))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  10. src/text/template/parse/lex_test.go

    	{"numbers", "{{1 02 0x14 0X14 -7.2i 1e3 1E3 +1.2e-4 4.2i 1+2i 1_2 0x1.e_fp4 0X1.E_FP4}}", []item{
    		tLeft,
    		mkItem(itemNumber, "1"),
    		tSpace,
    		mkItem(itemNumber, "02"),
    		tSpace,
    		mkItem(itemNumber, "0x14"),
    		tSpace,
    		mkItem(itemNumber, "0X14"),
    		tSpace,
    		mkItem(itemNumber, "-7.2i"),
    		tSpace,
    		mkItem(itemNumber, "1e3"),
    		tSpace,
    		mkItem(itemNumber, "1E3"),
    		tSpace,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 15:03:43 UTC 2022
    - 13.9K bytes
    - Viewed (0)
Back to top