Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for MinInt64 (0.21 sec)

  1. test/loopbce.go

    	}
    	for i := int64(math.MinInt64 + 7); i > math.MinInt64+2; i -= 4 {
    		useString("foo")
    	}
    	for i := int64(math.MinInt64 + 6); i > math.MinInt64+2; i -= 4 { // ERROR "Induction variable: limits \[-9223372036854775802,-9223372036854775802\], increment 4"
    		useString("foo")
    	}
    	for i := int64(math.MinInt64 + 9); i >= math.MinInt64+2; i -= 4 { // ERROR "Induction variable: limits \[-9223372036854775803,-9223372036854775799\], increment 4"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/const1.go

    	_ = uintptr(smallestFloat64 /* ERROR "cannot convert" */)
    )
    
    const (
    	_ float32 = minInt64
    	_ float64 = minInt64
    	_ complex64 = minInt64
    	_ complex128 = minInt64
    
    	_ = float32(minInt64)
    	_ = float64(minInt64)
    	_ = complex64(minInt64)
    	_ = complex128(minInt64)
    )
    
    const (
    	_ float32 = maxUint64
    	_ float64 = maxUint64
    	_ complex64 = maxUint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/internal/itoa/itoa_test.go

    package itoa_test
    
    import (
    	"fmt"
    	"internal/itoa"
    	"math"
    	"testing"
    )
    
    var (
    	minInt64  int64  = math.MinInt64
    	maxInt64  int64  = math.MaxInt64
    	maxUint64 uint64 = math.MaxUint64
    )
    
    func TestItoa(t *testing.T) {
    	tests := []int{int(minInt64), math.MinInt32, -999, -100, -1, 0, 1, 100, 999, math.MaxInt32, int(maxInt64)}
    	for _, tt := range tests {
    		got := itoa.Itoa(tt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 02:53:50 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    		},
    		{
    			name: "int64",
    			obj:  int64(5),
    		},
    		{
    			name: "int64 max",
    			obj:  int64(math.MaxInt64),
    		},
    		{
    			name: "int64 min",
    			obj:  int64(math.MinInt64),
    		},
    		{
    			name: "int64 zero",
    			obj:  int64(math.MinInt64),
    		},
    		{
    			name: "uint64 zero",
    			obj:  uint64(0),
    		},
    		{
    			name: "int32 max",
    			obj:  int32(math.MaxInt32),
    		},
    		{
    			name: "int32 min",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. test/prove.go

    			return
    		}
    	}
    }
    
    func fence3(b, c []int, x, y int64) {
    	if x-1 >= y {
    		if x <= y { // Can't prove because x may have wrapped.
    			return
    		}
    	}
    
    	if x != math.MinInt64 && x-1 >= y {
    		if x <= y { // ERROR "Disproved Leq64$"
    			return
    		}
    	}
    
    	c[len(c)-1] = 0 // Can't prove because len(c) might be 0
    
    	if n := len(b); n > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. 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)
  9. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    	if err != nil {
    		return framework.AsStatus(err)
    	}
    	if len(s.topologyScore) == 0 {
    		return nil
    	}
    
    	var minCount int64 = math.MaxInt64
    	var maxCount int64 = math.MinInt64
    	for i := range scores {
    		score := scores[i].Score
    		if score > maxCount {
    			maxCount = score
    		}
    		if score < minCount {
    			minCount = score
    		}
    	}
    
    	maxMinDiff := maxCount - minCount
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. src/math/big/float_test.go

    func TestFloatInt64(t *testing.T) {
    	for _, test := range []struct {
    		x   string
    		out int64
    		acc Accuracy
    	}{
    		{"-Inf", math.MinInt64, Above},
    		{"-1e10000", math.MinInt64, Above},
    		{"-9223372036854775809", math.MinInt64, Above},
    		{"-9223372036854775808.000000000000000000001", math.MinInt64, Above},
    		{"-9223372036854775808", -9223372036854775808, Exact},
    		{"-9223372036854775807.000000000000000000001", -9223372036854775807, Above},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
Back to top