- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 41 for int64Val (0.19 sec)
-
src/go/constant/value_test.go
if x == nil { return UnaryOp(op, y, 0) } switch op { case token.EQL, token.NEQ, token.LSS, token.LEQ, token.GTR, token.GEQ: return MakeBool(Compare(x, op, y)) case token.SHL, token.SHR: s, _ := Int64Val(y) return Shift(x, op, uint(s)) default: return BinaryOp(x, op, y) } } // ---------------------------------------------------------------------------- // Other tests
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/compare.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
} return -1 } if isUntyped(x.typ) || isInteger(x.typ) { if val := constant.ToInt(x.val); val.Kind() == constant.Int { if representableConst(val, check, Typ[Int], nil) { if n, ok := constant.Int64Val(val); ok && n >= 0 { return n } } } } var msg string if isInteger(x.typ) { msg = "invalid array length %s" } else { msg = "array length %s must be integer" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/go/types/typexpr.go
} return -1 } if isUntyped(x.typ) || isInteger(x.typ) { if val := constant.ToInt(x.val); val.Kind() == constant.Int { if representableConst(val, check, Typ[Int], nil) { if n, ok := constant.Int64Val(val); ok && n >= 0 { return n } } } } var msg string if isInteger(x.typ) { msg = "invalid array length %s" } else { msg = "array length %s must be integer" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/go/types/stmt.go
// and string values, so only create Go values for these // types. switch val.Kind() { case constant.Int: if x, ok := constant.Int64Val(val); ok { return x } if x, ok := constant.Uint64Val(val); ok { return x } case constant.Float: if x, ok := constant.Float64Val(val); ok { return x } case constant.String: return constant.StringVal(val)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
// and string values, so only create Go values for these // types. switch val.Kind() { case constant.Int: if x, ok := constant.Int64Val(val); ok { return x } if x, ok := constant.Uint64Val(val); ok { return x } case constant.Float: if x, ok := constant.Float64Val(val); ok { return x } case constant.String: return constant.StringVal(val)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
ir.OSTR2BYTES, ir.OSTR2RUNES: return true } return false } return !ir.Any(n, bad) } func getlit(lit ir.Node) int { if ir.IsSmallIntConst(lit) { return int(ir.Int64Val(lit)) } return -1 } func isvaluelit(n ir.Node) bool { return n.Op() == ir.OARRAYLIT || n.Op() == ir.OSTRUCTLIT } func subst(n ir.Node, m map[*ir.Name]ir.Node) (ir.Node, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/go/types/expr.go
if i.Kind() != constant.Int { v, _ := constant.Float64Val(x) return v } x = i fallthrough case constant.Int: if v, ok := constant.Int64Val(x); ok { return v } if v, ok := constant.Uint64Val(x); ok { return v } case constant.String: return constant.StringVal(x) case constant.Bool: return constant.BoolVal(x) } return x }
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/ssagen/ssa.go
// we'll need idx-min anyway as the control value for the jump table. var min, max uint64 if unsigned { min, _ = constant.Uint64Val(n.Cases[0]) max, _ = constant.Uint64Val(n.Cases[len(n.Cases)-1]) } else { mn, _ := constant.Int64Val(n.Cases[0]) mx, _ := constant.Int64Val(n.Cases[len(n.Cases)-1]) min = uint64(mn) max = uint64(mx) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
api/go1.5.txt
pkg go/constant, func Denom(Value) Value pkg go/constant, func Float32Val(Value) (float32, bool) pkg go/constant, func Float64Val(Value) (float64, bool) pkg go/constant, func Imag(Value) Value pkg go/constant, func Int64Val(Value) (int64, bool) pkg go/constant, func MakeBool(bool) Value pkg go/constant, func MakeFloat64(float64) Value pkg go/constant, func MakeFromBytes([]uint8) Value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0)