- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for smantissa (0.1 sec)
-
src/cmd/compile/internal/ssa/rewrite.go
b := math.Float64bits(f) m := b & ((1 << 52) - 1) // mantissa (a.k.a. significand) // | sign | exponent | mantissa | r := uint32(((b >> 32) & (1 << 31)) | 0x7f800000 | (m >> (52 - 23))) return math.Float32frombits(r) } // extend32Fto64F converts a float32 value to a float64 value preserving the bit // pattern of the mantissa. func extend32Fto64F(f float32) float64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 64.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
// } // // Code borrowed from old code generator. // What's going on: large 64-bit "unsigned" looks like // negative number to hardware's integer-to-float // conversion. However, because the mantissa is only // 63 bits, we don't need the LSB, so instead we do an // unsigned right shift (divide by two), convert, and // double. However, before we do that, we need to be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)