Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for MinInt64 (0.25 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    		},
    		{
    			input:  "-9223372036854775808", // math.MinInt64
    			output: IntOrString{Type: String, StrVal: "-9223372036854775808"},
    		},
    		{
    			input:  "9223372036854775808", // math.MaxInt64+1
    			output: IntOrString{Type: String, StrVal: "9223372036854775808"},
    		},
    		{
    			input:  "-9223372036854775809", // math.MinInt64-1
    			output: IntOrString{Type: String, StrVal: "-9223372036854775809"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. src/math/big/float.go

    	}
    
    	panic("unreachable")
    }
    
    // Int64 returns the integer resulting from truncating x towards zero.
    // If [math.MinInt64] <= x <= [math.MaxInt64], the result is [Exact] if x is
    // an integer, and [Above] (x < 0) or [Below] (x > 0) otherwise.
    // The result is ([math.MinInt64], [Above]) for x < [math.MinInt64],
    // and ([math.MaxInt64], [Below]) for x > [math.MaxInt64].
    func (x *Float) Int64() (int64, Accuracy) {
    	if debugFloat {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/preemption/preemption.go

    			if earliestStartTimeOnNode == nil {
    				logger.Error(errors.New("earliestStartTime is nil for node"), "Should not reach here", "node", node)
    				return int64(math.MinInt64)
    			}
    			// The bigger the earliestStartTimeOnNode, the higher the score.
    			return earliestStartTimeOnNode.UnixNano()
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
Back to top