Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for unrepresentable (0.21 sec)

  1. src/runtime/mspanset.go

    	// can only support up to 2^32 pushes before a reset. If every
    	// span in the heap were stored in this set, and each span were
    	// the minimum size (1 runtime page, 8 KiB), then roughly the
    	// smallest heap which would be unrepresentable is 32 TiB in size.
    	index atomicHeadTailIndex
    }
    
    const (
    	spanSetBlockEntries = 512 // 4KB on 64-bit
    	spanSetInitSpineCap = 256 // Enough for 1GB heap on 64-bit
    )
    
    type spanSetBlock struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. src/encoding/gob/encoder_test.go

    		if err := dec.Decode(&s); err != nil {
    			t.Fatal("decoder fail:", err)
    		}
    		if s != fmt.Sprintf("%d", i) {
    			t.Fatalf("decode expected %d got %s", i, s)
    		}
    	}
    }
    
    // Should be able to have unrepresentable fields (chan, func, *chan etc.); we just ignore them.
    type Bug2 struct {
    	A   int
    	C   chan int
    	CP  *chan int
    	F   func()
    	FPP **func()
    }
    
    func TestChanFuncIgnored(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    			want: []byte{0x18, 0xff},
    		},
    		{
    			in:   FromInt32(math.MaxUint8 + 1), // min positive integer representable in three bytes
    			want: []byte{0x19, 0x01, 0x00},
    		},
    		{
    			in:   FromInt32(math.MaxUint16), // max positive integer representable in three bytes
    			want: []byte{0x19, 0xff, 0xff},
    		},
    		{
    			in:   FromInt32(math.MaxUint16 + 1), // min positive integer representable in five bytes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .setExpectation(Math.pow(2, 53), values())
            .test();
      }
    
      public void testRoundToDouble_maxPreciselyRepresentablePlusOne() {
        double twoToThe53 = Math.pow(2, 53);
        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigDecimal.valueOf((1L << 53) + 1))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      /**
       * Returns {@code x}, rounded to a {@code double} with the specified rounding mode. If {@code x}
       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_DOWN}, {@code HALF_UP}, and {@code HALF_EVEN},
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      /**
       * Returns {@code x}, rounded to a {@code double} with the specified rounding mode. If {@code x}
       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_DOWN}, {@code HALF_UP}, and {@code HALF_EVEN},
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LongMath.java

       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
       * default rounding mode: if the two nearest representable values are equally near, the one with
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. src/go/constant/value.go

    		s    string
    		l, r *stringVal
    	}
    	int64Val   int64                    // Int values representable as an int64
    	intVal     struct{ val *big.Int }   // Int values not representable as an int64
    	ratVal     struct{ val *big.Rat }   // Float values representable as a fraction
    	floatVal   struct{ val *big.Float } // Float values not representable as a fraction
    	complexVal struct{ re, im Value }
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/LongMath.java

       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
       * default rounding mode: if the two nearest representable values are equally near, the one with
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxPreciselyRepresentablePlusOne() {
        double twoToThe53 = Math.pow(2, 53);
        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigInteger.valueOf((1L << 53) + 1))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top