- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for int64Val (0.16 sec)
-
src/cmd/compile/internal/ir/const.go
func ConstOverflow(v constant.Value, t *types.Type) bool { switch { case t.IsInteger(): bits := uint(8 * t.Size()) if t.IsUnsigned() { x, ok := constant.Uint64Val(v) 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go
return } v := pass.TypesInfo.Types[y].Value if v == nil { return } u := constant.ToInt(v) // either an Int or Unknown amt, ok := constant.Int64Val(u) if !ok { return } t := pass.TypesInfo.Types[x].Type if t == nil { return } var structuralTypes []types.Type switch t := aliases.Unalias(t).(type) { case *types.TypeParam:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/const.go
return s } switch { case isInteger(typ): x := constant.ToInt(x) if x.Kind() != constant.Int { return false } if rounded != nil { *rounded = x } if x, ok := constant.Int64Val(x); ok { switch typ.kind { case Int: var s = uint(sizeof(typ)) * 8 return int64(-1)<<(s-1) <= x && x <= int64(1)<<(s-1)-1 case Int8: const s = 8 return -1<<(s-1) <= x && x <= 1<<(s-1)-1
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 s } switch { case isInteger(typ): x := constant.ToInt(x) if x.Kind() != constant.Int { return false } if rounded != nil { *rounded = x } if x, ok := constant.Int64Val(x); ok { switch typ.kind { case Int: var s = uint(sizeof(typ)) * 8 return int64(-1)<<(s-1) <= x && x <= int64(1)<<(s-1)-1 case Int8: const s = 8 return -1<<(s-1) <= x && x <= 1<<(s-1)-1
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/vendor/golang.org/x/tools/go/analysis/passes/shift/dead.go
return } tagN, ok := constant.Uint64Val(v) if !ok { return } BodyLoopInt: for _, x := range stmt.Body.List { cc := x.(*ast.CaseClause) if cc.List == nil { // Skip default case. continue } for _, expr := range cc.List { v := info.Types[expr].Value if v == nil { continue BodyLoopInt } n, ok := constant.Uint64Val(v) if !ok || tagN == n {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 06 18:23:38 UTC 2018 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/parse_example.pbtxt
attr { key: "dtype" value { type: DT_INT64 } } attr { key: "value" value { tensor { dtype: DT_INT64 tensor_shape { } int64_val: -1 } } } } node { name: "result" op: "ParseExample" input: "serilaized" input: "Const" input: "Const_1" input: "Const_2" attr { key: "Ndense"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 14 15:35:49 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/tf-data-pipeline.pbtxt
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 29 04:41:05 UTC 2021 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/output-shapes.pbtxt
attr { key: "dtype" value { type: DT_INT64 } } attr { key: "value" value { tensor { dtype: DT_INT64 tensor_shape { } int64_val: -1 } } } attr { key: "_output_shapes" value { list { shape { } } } } } node { name: "Const1" op: "Const" attr {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 21 04:07:13 UTC 2021 - 3K bytes - Viewed (0) -
src/go/types/conversions.go
case t == nil: // nothing to do case representableConst(x.val, check, t, val): return true case isInteger(x.typ) && isString(t): codepoint := unicode.ReplacementChar if i, ok := constant.Uint64Val(x.val); ok && i <= unicode.MaxRune { codepoint = rune(i) } if val != nil { *val = constant.MakeString(string(codepoint)) } return true } return false } var ok bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/conversions.go
case t == nil: // nothing to do case representableConst(x.val, check, t, val): return true case isInteger(x.typ) && isString(t): codepoint := unicode.ReplacementChar if i, ok := constant.Uint64Val(x.val); ok && i <= unicode.MaxRune { codepoint = rune(i) } if val != nil { *val = constant.MakeString(string(codepoint)) } return true } return false } var ok bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0)