- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for smallestFloat64 (0.17 sec)
-
src/internal/types/testdata/check/const1.go
// without overflow. For now we match the compiler. // See also issue #44057. // smallestFloat64 = 1.0 / (1<<(1023 - 1 + 52)) smallestFloat64 = math.SmallestNonzeroFloat64 ) const ( _ = assert(smallestFloat32 > 0) _ = assert(smallestFloat64 > 0) ) const ( maxFloat32 = 1<<127 * (1<<24 - 1) / (1.0<<23) // TODO(gri) The compiler limits integers to 512 bit and thus
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 8.5K bytes - Viewed (0) -
src/go/types/expr.go
if !isInteger(x.typ) { x.typ = Typ[UntypedInt] } return } // rhs must be within reasonable bounds in constant shifts const shiftBound = 1023 - 1 + 52 // so we can express smallestFloat64 (see go.dev/issue/44057) s, ok := constant.Uint64Val(yval) if !ok || s > shiftBound { check.errorf(y, InvalidShiftCount, invalidOp+"invalid shift count %s", y) x.mode = invalid return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
if !isInteger(x.typ) { x.typ = Typ[UntypedInt] } return } // rhs must be within reasonable bounds in constant shifts const shiftBound = 1023 - 1 + 52 // so we can express smallestFloat64 (see go.dev/issue/44057) s, ok := constant.Uint64Val(yval) if !ok || s > shiftBound { check.errorf(y, InvalidShiftCount, invalidOp+"invalid shift count %s", y) x.mode = invalid return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)