Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for 1b7fffffffffffffff (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    		},
    		{
    			name:          "int64 max positive value",
    			in:            hex("1b7fffffffffffffff"), // 9223372036854775807
    			want:          int64(9223372036854775807),
    			assertOnError: assertNilError,
    		},
    		{
    			name: "max positive integer value supported by cbor: 2^64 - 1",
    			in:   hex("1bffffffffffffffff"), // 18446744073709551615
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/math_test.go

    		q = (int64(0x7fffffffffffffff) - int64(i) - (q & 1)) / -int64(i)
    	}
    	Output = int(q)
    }
    
    func BenchmarkDiv64NegDividend(b *testing.B) {
    	q := int64(-1)
    	for i := 1; i <= b.N; i++ {
    		q = -(int64(0x7fffffffffffffff) - int64(i) - (q & 1)) / int64(i)
    	}
    	Output = int(q)
    }
    
    func BenchmarkDiv64NegBoth(b *testing.B) {
    	q := int64(-1)
    	for i := 1; i <= b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue27143.go

    // Issue 27143: cmd/compile: erroneous application of walkinrange
    // optimization for const over 2**63
    
    package p
    
    var c uint64
    
    var b1 bool = 0x7fffffffffffffff < c && c < 0x8000000000000000
    var b2 bool = c < 0x8000000000000000 && 0x7fffffffffffffff < c
    var b3 bool = 0x8000000000000000 < c && c < 0x8000000000000001
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 26 21:52:27 UTC 2018
    - 553 bytes
    - Viewed (0)
  4. src/runtime/conv_wasm_test.go

    var ures uint64
    
    func TestFloatTruncation(t *testing.T) {
    	testdata := []struct {
    		input      float64
    		convInt64  int64
    		convUInt64 uint64
    		overflow   bool
    	}{
    		// max +- 1
    		{
    			input:      0x7fffffffffffffff,
    			convInt64:  -0x8000000000000000,
    			convUInt64: 0x8000000000000000,
    		},
    		// For out-of-bounds conversion, the result is implementation-dependent.
    		// This test verifies the implementation of wasm architecture.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 06 13:55:00 UTC 2020
    - 3K bytes
    - Viewed (0)
  5. src/runtime/sys_wasm.s

    TEXT runtime·wasmTruncS(SB), NOSPLIT, $0-0
    	Get R0
    	Get R0
    	F64Ne // NaN
    	If
    		I64Const $0x8000000000000000
    		Return
    	End
    
    	Get R0
    	F64Const $0x7ffffffffffffc00p0 // Maximum truncated representation of 0x7fffffffffffffff
    	F64Gt
    	If
    		I64Const $0x8000000000000000
    		Return
    	End
    
    	Get R0
    	F64Const $-0x7ffffffffffffc00p0 // Minimum truncated representation of -0x8000000000000000
    	F64Lt
    	If
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/testdata/fp_test.go

    		expect64(t, "a", a, 127)
    		expect64(t, "b", b, 255)
    		expect64(t, "c", c, 32767)
    		expect64(t, "d", d, 65535)
    		expect64(t, "e", e, float64(int32(0x7fffffff)))
    		expect64(t, "f", f, float64(uint32(0xffffffff)))
    		expect64(t, "g", g, float64(int64(0x7fffffffffffffff)))
    		expect64(t, "h", h, float64(uint64(0xffffffffffffffff)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  7. src/io/fs/format_test.go

    			isDir:   true,
    		},
    		"drwxr-xr-x 0 1970-01-01 12:00:00 home/gopher/",
    		"d home/gopher/",
    	},
    	{
    		formatTest{
    			name:    "big",
    			size:    0x7fffffffffffffff,
    			mode:    ModeIrregular | 0o644,
    			modTime: time.Date(1970, time.January, 1, 12, 0, 0, 0, time.UTC),
    			isDir:   false,
    		},
    		"?rw-r--r-- 9223372036854775807 1970-01-01 12:00:00 big",
    		"? big",
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 17:59:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    var szs = []sizedTestData{
    	sizedTestData{name: "uint64", sn: "64", u: []uint64{0, 1, 4294967296, 0xffffFFFFffffFFFF}},
    	sizedTestData{name: "int64", sn: "64", i: []int64{-0x8000000000000000, -0x7FFFFFFFFFFFFFFF,
    		-4294967296, -1, 0, 1, 4294967296, 0x7FFFFFFFFFFFFFFE, 0x7FFFFFFFFFFFFFFF}},
    
    	sizedTestData{name: "uint32", sn: "32", u: []uint64{0, 1, 4294967295}},
    	sizedTestData{name: "int32", sn: "32", i: []int64{-0x80000000, -0x7FFFFFFF, -1, 0,
    		1, 0x7FFFFFFF}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/appendixa_test.go

    		},
    		{
    			example: hex("1a000f4240"),
    			decoded: int64(1000000),
    		},
    		{
    			example: hex("1b000000e8d4a51000"),
    			decoded: int64(1000000000000),
    		},
    		{
    			example: hex("1bffffffffffffffff"),
    			reject:  "2^64-1 overflows int64 and falling back to float64 (as with JSON) loses distinction between float and integer",
    		},
    		{
    			example: hex("c249010000000000000000"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 18:59:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/gen/arithConstGen.go

    	{name: "uint64", sn: "64", u: []uint64{3, 5, 7, 9, 10, 11, 13, 19, 21, 25, 27, 37, 41, 45, 73, 81}, oponly: "mul"},
    
    	{name: "int64", sn: "64", i: []int64{-0x8000000000000000, -0x7FFFFFFFFFFFFFFF,
    		-4294967296, -1, 0, 1, 4294967296, 0x7FFFFFFFFFFFFFFE, 0x7FFFFFFFFFFFFFFF}},
    	{name: "int64", sn: "64", i: []int64{-9, -5, -3, 3, 5, 7, 9, 10, 11, 13, 19, 21, 25, 27, 37, 41, 45, 73, 81}, oponly: "mul"},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.3K bytes
    - Viewed (0)
Back to top