- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Float32Val (0.15 sec)
-
src/cmd/compile/internal/types2/const.go
return x.Kind() == constant.Bool } return false } func fitsFloat32(x constant.Value) bool { f32, _ := constant.Float32Val(x) f := float64(f32) return !math.IsInf(f, 0) } func roundFloat32(x constant.Value) constant.Value { f32, _ := constant.Float32Val(x) f := float64(f32) if !math.IsInf(f, 0) { return constant.MakeFloat64(f) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 7.5K bytes - Viewed (0) -
src/go/types/const.go
return x.Kind() == constant.Bool } return false } func fitsFloat32(x constant.Value) bool { f32, _ := constant.Float32Val(x) f := float64(f32) return !math.IsInf(f, 0) } func roundFloat32(x constant.Value) constant.Value { f32, _ := constant.Float32Val(x) f := float64(f32) if !math.IsInf(f, 0) { return constant.MakeFloat64(f) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.6K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
return !ok || x>>bits != 0 } x, ok := constant.Int64Val(v) if x < 0 { x = ^x } return !ok || x>>(bits-1) != 0 case t.IsFloat(): switch t.Size() { case 4: f, _ := constant.Float32Val(v) return math.IsInf(float64(f), 0) case 8: f, _ := constant.Float64Val(v) return math.IsInf(f, 0) } case t.IsComplex(): ft := types.FloatForComplex(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
src/fmt/scan_test.go
int64Val int64 uintVal uint uint8Val uint8 uint16Val uint16 uint32Val uint32 uint64Val uint64 uintptrVal uintptr float32Val float32 float64Val float64 stringVal string bytesVal []byte runeVal rune complex64Val complex64 complex128Val complex128
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/const.go
"unicode" "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/types" ) func roundFloat(v constant.Value, sz int64) constant.Value { switch sz { case 4: f, _ := constant.Float32Val(v) return makeFloat64(float64(f)) case 8: f, _ := constant.Float64Val(v) return makeFloat64(f) } base.Fatalf("unexpected size: %v", sz) panic("unreachable") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 10.5K bytes - Viewed (0) -
src/go/constant/value.go
case intVal: return x.val.Uint64(), x.val.IsUint64() case unknownVal: return 0, false default: panic(fmt.Sprintf("%v not an Int", x)) } } // Float32Val is like [Float64Val] but for float32 instead of float64. func Float32Val(x Value) (float32, bool) { switch x := x.(type) { case int64Val: f := float32(x) return f, int64Val(f) == x case intVal: f, acc := newFloat().SetInt(x.val).Float32()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"BitLen", Func, 5}, {"Bool", Const, 5}, {"BoolVal", Func, 5}, {"Bytes", Func, 5}, {"Compare", Func, 5}, {"Complex", Const, 5}, {"Denom", Func, 5}, {"Float", Const, 5}, {"Float32Val", Func, 5}, {"Float64Val", Func, 5}, {"Imag", Func, 5}, {"Int", Const, 5}, {"Int64Val", Func, 5}, {"Kind", Type, 5}, {"Make", Func, 13}, {"MakeBool", Func, 5},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)