Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 604 for integers (0.14 sec)

  1. src/strconv/itoa.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package strconv
    
    import "math/bits"
    
    const fastSmalls = true // enable fast path for small integers
    
    // FormatUint returns the string representation of i in the given base,
    // for 2 <= base <= 36. The result uses the lower-case letters 'a' to 'z'
    // for digit values >= 10.
    func FormatUint(i uint64, base int) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/internal/types/testdata/spec/range_int.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This is a subset of the tests in range.go for range over integers,
    // with extra tests, and without the need for -goexperiment=range.
    
    package p
    
    // test framework assumes 64-bit int/uint sizes by default
    const (
    	maxInt  = 1<<63 - 1
    	maxUint = 1<<64 - 1
    )
    
    type MyInt int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:56:00 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/crypto/ecdsa/ecdsa_legacy.go

    // using the private key, priv. If the hash is longer than the bit-length of the
    // private key's curve order, the hash will be truncated to that length. It
    // returns the signature as a pair of integers. Most applications should use
    // [SignASN1] instead of dealing directly with r, s.
    func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err error) {
    	sig, err := SignASN1(rand, priv, hash)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_util.h

    #include "xla/statusor.h"
    #include "tensorflow/core/framework/types.h"
    
    namespace tensorflow {
    namespace jit {
    class DeviceInfoCache;
    class DeviceSet;
    
    // Instances of DeviceId represent TensorFlow devices as integers.
    //
    // This helps avoid having to manipulate device names as strings when
    // auto-clustering.
    class DeviceId {
     public:
      DeviceId(DeviceId&&) = default;
      DeviceId(const DeviceId&) = default;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 17:18:31 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/crypto/x509/oid.go

    		// Thus the representation is either non-minimal or too large for an int32
    		if shifted == 5 {
    			failed = true
    			return
    		}
    		ret64 <<= 7
    		b := bytes[offset]
    		// integers should be minimally encoded, so the leading octet should
    		// never be 0x80
    		if shifted == 0 && b == 0x80 {
    			failed = true
    			return
    		}
    		ret64 |= int64(b & 0x7f)
    		offset++
    		if b&0x80 == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

        "Q" # !if (signed, "I", "UI") # !head(params) # " type"> {
      string name = n;
      string asTraitArgsStr =
        !interleave(params, ", ") # !if(signed, ", true", ", false");
    }
    
    // Uniform quantized types. Two integers "smantissa" and "sexp" are used to
    // express the Mantissa and Exponent components of the floating-point scale so
    // the scale of the quantized type is "smantissa * 10 ^ sexp".
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. src/log/slog/value_test.go

    	if a != 0 {
    		t.Errorf("got %d allocs, want zero", a)
    	}
    	_ = u
    	_ = f
    	_ = b
    	_ = s
    	_ = x
    	_ = tm
    }
    
    func TestAnyLevelAlloc(t *testing.T) {
    	// Because typical Levels are small integers,
    	// they are zero-alloc.
    	var a Value
    	x := LevelDebug + 100
    	wantAllocs(t, 0, func() { a = AnyValue(x) })
    	_ = a
    }
    
    func TestAnyValue(t *testing.T) {
    	for _, test := range []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/internal/fuzz/encoding_test.go

    math.Float64frombits(0x7ff8000000000002)
    math.Float32frombits(0x7fc00001)`,
    		},
    		{
    			desc: "int variations",
    			// Although we arbitrarily choose default integer bases (0 or 16), we may
    			// want to change those arbitrary choices in the future and should not
    			// break the parser. Verify that integers in the opposite bases still
    			// parse correctly.
    			in: `go test fuzz v1
    int(0x0)
    int32(0x41)
    int64(0xfffffffff)
    uint32(0xcafef00d)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. src/database/sql/driver/types.go

    	Value() (Value, error)
    }
    
    // Bool is a [ValueConverter] that converts input values to bool.
    //
    // The conversion rules are:
    //   - booleans are returned unchanged
    //   - for integer types,
    //     1 is true
    //     0 is false,
    //     other integers are an error
    //   - for strings and []byte, same rules as [strconv.ParseBool]
    //   - all other types are an error
    var Bool boolType
    
    type boolType struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/body-nested-models.md

        Keep in mind that JSON only supports `str` as keys.
    
        But Pydantic has automatic data conversion.
    
        This means that, even though your API clients can only send strings as keys, as long as those strings contain pure integers, Pydantic will convert them and validate them.
    
        And the `dict` you receive as `weights` will actually have `int` keys and `float` values.
    
    ## Recap
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top