- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for unrepresentable (0.44 sec)
-
src/cmd/compile/internal/types2/check_test.go
} func withSizes(sizes Sizes) func(*Config) { return func(cfg *Config) { cfg.Sizes = sizes } } // TestIndexRepresentability tests that constant index operands must // be representable as int even if they already have a type that can // represent larger values. func TestIndexRepresentability(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
doc/go_spec.html
<a href="#Complex_numbers">components</a> <code>real(x)</code> and <code>imag(x)</code> are representable by values of <code>T</code>'s component type (<code>float32</code> or <code>float64</code>). </li> </ul> <p> If <code>T</code> is a type parameter, <code>x</code> is representable by a value of type <code>T</code> if <code>x</code> is representable by a value of each type in <code>T</code>'s type set. </p> <pre>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1) -
src/runtime/string.go
return s } const ( maxUint64 = ^uint64(0) maxInt64 = int64(maxUint64 >> 1) ) // atoi64 parses an int64 from a string s. // The bool result reports whether s is a number // representable by a value of type int64. func atoi64(s string) (int64, bool) { if s == "" { return 0, false } neg := false if s[0] == '-' { neg = true s = s[1:] } un := uint64(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/go/types/check_test.go
} func withSizes(sizes Sizes) func(*Config) { return func(cfg *Config) { cfg.Sizes = sizes } } // TestIndexRepresentability tests that constant index operands must // be representable as int even if they already have a type that can // represent larger values. func TestIndexRepresentability(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/runtime/type.go
// // When a type is defined at run time, its *rtype data lives on the heap. // There are a wide range of possible addresses the heap may use, that // may not be representable as a 32-bit offset. Moreover the GC may // one day start moving heap memory, in which case there is no stable // offset that can be defined. // // To provide stable offsets, we add pin *rtype objects in a global map
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/net/http/cookiejar/jar.go
errMalformedDomain = errors.New("cookiejar: malformed cookie domain attribute") ) // endOfTime is the time when session (non-persistent) cookies expire. // This instant is representable in most date/time formats (not just // Go's time.Time) and should be far enough in the future. var endOfTime = time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewrite.go
switch exp { case 0: return false // ±0 case 0x7ff: return false // ±inf case 0x7fe: return false // exponent is not representable default: return true } } // reciprocalExact32 reports whether 1/c is exactly representable. func reciprocalExact32(c float32) bool { b := math.Float32bits(c) man := b & (1<<23 - 1) if man != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 64.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
amount.SetUnscaledBig(ub.Mul(ub, numericSuffix)) } // Cap at min/max bounds. sign := amount.Sign() if sign == -1 { amount.Neg(amount) } // This rounds non-zero values up to the minimum representable value, under the theory that // if you want some resources, you should get some resources, even if you asked for way too small // of an amount. Arguably, this should be inf.RoundHalfUp (normal rounding), but that would have
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 23.8K bytes - Viewed (0) -
src/time/time.go
// So we'd prefer instead to print a calendar for 2001-2400 and reuse it // for 2401-2800. // // Finally, it's convenient if the delta between the Unix epoch and // long-ago epoch is representable by an int64 constant. // // These three considerations—choose an epoch as early as possible, that // uses a year equal to 1 mod 400, and that is no more than 2⁶³ seconds
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
src/go/types/stmt.go
return bad("no core type") case *Basic: if isString(typ) { return Typ[Int], universeRune, "", false, true // use 'rune' name } if isInteger(typ) { // untyped numeric constants may be representable as integer values if allowVersion != nil && !allowVersion(go1_22) { return bad("requires go1.22 or later") } return orig, nil, "", false, true } case *Array:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0)