- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 340 for constants_ (0.28 sec)
-
src/go/types/builtins.go
return } // if both arguments are constants, the result is a constant if x.mode == constant_ && y.mode == constant_ { x.val = constant.BinaryOp(constant.ToFloat(x.val), token.ADD, constant.MakeImag(constant.ToFloat(y.val))) } else { x.mode = value } if check.recordTypes() && x.mode != constant_ { check.recordBuiltinType(call.Fun, makeSig(resTyp, x.typ, x.typ)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
src/go/types/conversions.go
cause = check.sprintf("constant %s overflows %s (in %s)", x.val, u, T) } else { cause = check.sprintf("cannot convert %s to type %s (in %s)", x, u, T) } return false } return true }) x.mode = value // type parameters are not constants case x.convertibleTo(check, T, &cause): // non-constant conversion ok = true x.mode = value } if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc
auto one_cst = rewriter.create<stablehlo::ConstantOp>(rewriter.getUnknownLoc(), one_val); auto half_val = DenseElementsAttr::get(type, kHalf); auto half_cst = rewriter.create<stablehlo::ConstantOp>(one_cst.getLoc(), half_val); auto one_over_root2_val = DenseElementsAttr::get(type, kOneOverRoot2); auto one_over_root2_cst = rewriter.create<stablehlo::ConstantOp>( half_cst.getLoc(), one_over_root2_val);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 9.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins.go
return } // if both arguments are constants, the result is a constant if x.mode == constant_ && y.mode == constant_ { x.val = constant.BinaryOp(constant.ToFloat(x.val), token.ADD, constant.MakeImag(constant.ToFloat(y.val))) } else { x.mode = value } if check.recordTypes() && x.mode != constant_ { check.recordBuiltinType(call.Fun, makeSig(resTyp, x.typ, x.typ)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/go/types/expr.go
case constant.Float: i := constant.ToInt(x) 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:
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/types2/conversions.go
cause = check.sprintf("constant %s overflows %s (in %s)", x.val, u, T) } else { cause = check.sprintf("cannot convert %s to type %s (in %s)", x, u, T) } return false } return true }) x.mode = value // type parameters are not constants case x.convertibleTo(check, T, &cause): // non-constant conversion ok = true x.mode = value } if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0) -
src/go/types/api.go
// identifier, and use the Implicits field of [Info] to find the // symbol for certain other kinds of syntax node. // // Constant folding computes the exact constant value // ([constant.Value]) of every expression ([ast.Expr]) that is a // compile-time constant. Use the Types field of [Info] to find the // results of constant folding for an expression. // // Type deduction computes the type ([Type]) of every expression
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
case constant.Float: i := constant.ToInt(x) 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:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/compute_test.go
const fakeCurrentEtcdVersion = "3.1.12" func getEtcdVersion(v *versionutil.Version) string { etcdVer, _, _ := constants.EtcdSupportedVersion(constants.SupportedEtcdVersion, v.String()) return etcdVer.String() } const fakeCurrentCoreDNSVersion = "1.0.6" func TestGetAvailableUpgrades(t *testing.T) { // constansts for test cases
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 08:39:51 UTC 2024 - 34.1K bytes - Viewed (0)