- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 34 for MinInt64 (0.14 sec)
-
src/time/format_test.go
t.Errorf("Parse(%q, %q) = got %d, want %d", format, tt.value, got, tt.want) } } } } func FuzzFormatRFC3339(f *testing.F) { for _, ts := range [][2]int64{ {math.MinInt64, math.MinInt64}, // 292277026304-08-26T15:42:51Z {-62167219200, 0}, // 0000-01-01T00:00:00Z {1661201140, 676836973}, // 2022-08-22T20:45:40.676836973Z
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:58:29 UTC 2024 - 36.4K bytes - Viewed (0) -
src/math/big/rat_test.go
t.Errorf("IsFinite(%g, (%b))", f, f) } } } func TestRatSetInt64(t *testing.T) { var testCases = []int64{ 0, 1, -1, 12345, -98765, math.MaxInt64, math.MinInt64, } var r = new(Rat) for i, want := range testCases { r.SetInt64(want) if !r.IsInt() { t.Errorf("#%d: Rat.SetInt64(%d) is not an integer", i, want) } num := r.Num() if !num.IsInt64() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 00:15:59 UTC 2022 - 18.9K bytes - Viewed (0) -
src/cmd/compile/internal/wasm/ssa.go
s.Prog(wasm.AI64ExtendI32U) case ssa.OpWasmI64DivS: getValue64(s, v.Args[0]) getValue64(s, v.Args[1]) if v.Type.Size() == 8 { // Division of int64 needs helper function wasmDiv to handle the MinInt64 / -1 case. p := s.Prog(wasm.ACall) p.To = obj.Addr{Type: obj.TYPE_MEM, Name: obj.NAME_EXTERN, Sym: ir.Syms.WasmDiv} break } s.Prog(wasm.AI64DivS)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:21:13 UTC 2023 - 17.6K bytes - Viewed (0) -
src/time/zoneinfo.go
isstd, isutc bool // ignored - no idea what these mean } // alpha and omega are the beginning and end of time for zone // transitions. const ( alpha = -1 << 63 // math.MinInt64 omega = 1<<63 - 1 // math.MaxInt64 ) // UTC represents Universal Coordinated Time (UTC). var UTC *Location = &utcLoc // utcLoc is separate so that get can refer to &utcLoc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0) -
src/math/big/int_test.go
t.Errorf("expected panic for small buffer and value %x", x) } } }) } } func TestNewIntMinInt64(t *testing.T) { // Test for uint64 cast in NewInt. want := int64(math.MinInt64) if got := NewInt(want).Int64(); got != want { t.Fatalf("wanted %d, got %d", want, got) } } func TestNewIntAllocs(t *testing.T) { testenv.SkipIfOptimizationOff(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
(Leq(64|32|16|8)U _ (Const(64|32|16|8) [-1])) => (ConstBool [true]) (Less64 _ (Const64 [math.MinInt64])) => (ConstBool [false]) (Less32 _ (Const32 [math.MinInt32])) => (ConstBool [false]) (Less16 _ (Const16 [math.MinInt16])) => (ConstBool [false]) (Less8 _ (Const8 [math.MinInt8 ])) => (ConstBool [false]) (Leq64 (Const64 [math.MinInt64]) _) => (ConstBool [true]) (Leq32 (Const32 [math.MinInt32]) _) => (ConstBool [true])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/arith_test.go
t.Errorf("div19_int16(%d) = %v want %v", i, got, want) } } var minI32, maxI32, minI64, maxI64 int64 = math.MinInt32, math.MaxInt32, math.MinInt64, math.MaxInt64 // spot check inputs for int32 and int64 xs := []int64{ 0, 1, 2, 3, 4, 5, -1, -2, -3, -4, -5, sixS, 2 * sixS, 3 * sixS, 5 * sixS, 12345 * sixS,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:30:59 UTC 2023 - 43.5K bytes - Viewed (0) -
src/encoding/json/decode_test.go
}, { CaseName: Name(""), in: `{"-9223372036854775808":"min","9223372036854775807":"max"}`, ptr: new(map[int64]string), out: map[int64]string{math.MinInt64: "min", math.MaxInt64: "max"}, }, { CaseName: Name(""), in: `{"18446744073709551615":"max"}`, ptr: new(map[uint64]string), out: map[uint64]string{math.MaxUint64: "max"}, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0) -
src/time/time_test.go
max1, err := ParseDuration(max0.String()) if err != nil || max0 != max1 { t.Errorf("round-trip failed: %d => %q => %d, %v", max0, max0.String(), max1, err) } min0 := Duration(math.MinInt64) min1, err := ParseDuration(min0.String()) if err != nil || min0 != min1 { t.Errorf("round-trip failed: %d => %q => %d, %v", min0, min0.String(), min1, err) } for i := 0; i < 100; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
src/time/time.go
if lessThanHalf(r, m) { return d - r } if d1 := d + m - r; d1 > d { return d1 } return maxDuration // overflow } // Abs returns the absolute value of d. // As a special case, [math.MinInt64] is converted to [math.MaxInt64]. func (d Duration) Abs() Duration { switch { case d >= 0: return d case d == minDuration: return maxDuration default: return -d } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0)