- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for floatBits (0.19 sec)
-
src/encoding/gob/enc_helpers.go
if !ok { // It is kind complex64 but not type complex64. TODO: We can handle this unsafely. return false } for _, x := range slice { if x != 0+0i || state.sendZero { rpart := floatBits(float64(real(x))) ipart := floatBits(float64(imag(x))) state.encodeUint(rpart) state.encodeUint(ipart) } } return true } func encComplex128Array(state *encoderState, v reflect.Value) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 10 17:50:11 UTC 2018 - 9.9K bytes - Viewed (0) -
src/encoding/gob/encode.go
// swizzling. func floatBits(f float64) uint64 { u := math.Float64bits(f) return bits.ReverseBytes64(u) } // encFloat encodes the floating point value (float32 float64) referenced by v. func encFloat(i *encInstr, state *encoderState, v reflect.Value) { f := v.Float() if f != 0 || state.sendZero { bits := floatBits(f) state.update(i) state.encodeUint(bits) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 19K bytes - Viewed (0) -
src/strconv/atof.go
return } ok = true return } // decimal power of ten to binary power of two. var powtab = []int{1, 3, 6, 9, 13, 16, 19, 23, 26} func (d *decimal) floatBits(flt *floatInfo) (b uint64, overflow bool) { var exp int var mant uint64 // Zero is always a special case. if d.nd == 0 { mant = 0 exp = flt.bias goto out }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 18:50:50 UTC 2022 - 15.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner_test.go
// decimal floats {FloatLit, "0.", "0.", ""}, {FloatLit, "123.", "123.", ""}, {FloatLit, "0123.", "0123.", ""}, {FloatLit, ".0", ".0", ""}, {FloatLit, ".123", ".123", ""}, {FloatLit, ".0123", ".0123", ""}, {FloatLit, "0.0", "0.0", ""}, {FloatLit, "123.123", "123.123", ""}, {FloatLit, "0123.0123", "0123.0123", ""}, {FloatLit, "0e0", "0e0", ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner.go
ok = false } } s.nextch() kind = FloatLit if s.ch == '+' || s.ch == '-' { s.nextch() } digsep = s.digits(10, nil) | digsep&2 // don't lose sep bit if digsep&1 == 0 && ok { s.errorf("exponent has no digits") ok = false } } else if prefix == 'x' && kind == FloatLit && ok { s.errorf("hexadecimal mantissa requires a 'p' exponent") ok = false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 28 18:17:41 UTC 2022 - 17.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
// setConst sets x to the untyped constant for literal lit. func (x *operand) setConst(k syntax.LitKind, lit string) { var kind BasicKind switch k { case syntax.IntLit: kind = UntypedInt case syntax.FloatLit: kind = UntypedFloat case syntax.ImagLit: kind = UntypedComplex case syntax.RuneLit: kind = UntypedRune case syntax.StringLit: kind = UntypedString default: panic("unreachable") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0) -
test/codegen/arithmetic.go
// 386:"MOVL\t[$]-252645135","IMULL",-"IDIVL" // arm64:`SMULH`,-`DIV` // arm:`MOVW`,`MUL`,-`.*udiv` b := n2 / 17 // signed return a, b } func FloatDivs(a []float32) float32 { // amd64:`DIVSS\s8\([A-Z]+\),\sX[0-9]+` // 386/sse2:`DIVSS\s8\([A-Z]+\),\sX[0-9]+` return a[1] / a[2] } func Pow2Mods(n1 uint, n2 int) (uint, int) { // 386:"ANDL\t[$]31",-"DIVL"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:28:00 UTC 2024 - 15.2K bytes - Viewed (0) -
src/go/types/generate_test.go
insertImportPath(f, `"go/token"`) renameImportPath(f, `"cmd/compile/internal/syntax"->"go/ast"`) renameSelectorExprs(f, "syntax.Pos->token.Pos", "syntax.LitKind->token.Token", "syntax.IntLit->token.INT", "syntax.FloatLit->token.FLOAT", "syntax.ImagLit->token.IMAG", "syntax.RuneLit->token.CHAR", "syntax.StringLit->token.STRING") // must happen before renaming identifiers renameIdents(f, "syntax->ast") },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0)