Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for IsFloat (0.12 sec)

  1. src/text/template/parse/node.go

    			}
    		}
    	}
    	if !n.IsInt && !n.IsUint && !n.IsFloat {
    		return nil, fmt.Errorf("illegal number syntax: %q", text)
    	}
    	return n, nil
    }
    
    // simplifyComplex pulls out any other types that are represented by the complex number.
    // These all require that the imaginary part be zero.
    func (n *NumberNode) simplifyComplex() {
    	n.IsFloat = imag(n.Complex128) == 0
    	if n.IsFloat {
    		n.Float64 = real(n.Complex128)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtTypeInfoProvider.kt

        public val KaType.isByte: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.BYTE) }
        public val KaType.isFloat: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.FLOAT) }
        public val KaType.isDouble: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.DOUBLE) }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/text/template/parse/parse_test.go

    		} else if n.IsUint {
    			t.Errorf("did not expect unsigned integer for %q", test.text)
    		}
    		if test.isFloat {
    			if !n.IsFloat {
    				t.Errorf("expected float for %q", test.text)
    			}
    			if n.Float64 != test.float64 {
    				t.Errorf("float64 for %q should be %g Is %g", test.text, test.float64, n.Float64)
    			}
    		} else if n.IsFloat {
    			t.Errorf("did not expect float for %q", test.text)
    		}
    		if test.isComplex {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/predicates.go

    func isUnsigned(t Type) bool       { return isBasic(t, IsUnsigned) }
    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    func isComplex(t Type) bool        { return isBasic(t, IsComplex) }
    func isNumeric(t Type) bool        { return isBasic(t, IsNumeric) }
    func isString(t Type) bool         { return isBasic(t, IsString) }
    func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/go/types/predicates.go

    func isUnsigned(t Type) bool       { return isBasic(t, IsUnsigned) }
    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    func isComplex(t Type) bool        { return isBasic(t, IsComplex) }
    func isNumeric(t Type) bool        { return isBasic(t, IsNumeric) }
    func isString(t Type) bool         { return isBasic(t, IsString) }
    func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/walk.go

    func mayCall(n ir.Node) bool {
    	// When instrumenting, any expression might require function calls.
    	if base.Flag.Cfg.Instrumenting {
    		return true
    	}
    
    	isSoftFloat := func(typ *types.Type) bool {
    		return types.IsFloat[typ.Kind()] || types.IsComplex[typ.Kind()]
    	}
    
    	return ir.Any(n, func(n ir.Node) bool {
    		// walk should have already moved any Init blocks off of
    		// expressions.
    		if len(n.Init()) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                type.isULong -> KaConstantValue.KaUnsignedLongConstantValue((value as Number).toLong().toULong(), expression)
                type.isString -> KaConstantValue.KaStringConstantValue(value.toString(), expression)
                type.isFloat -> KaConstantValue.KaFloatConstantValue((value as Number).toFloat(), expression)
                type.isDouble -> KaConstantValue.KaDoubleConstantValue((value as Number).toDouble(), expression)
                else -> null
            }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Store {t} ptr val mem) && t.Size() == 4 && !t.IsFloat() => (MOVWstore ptr val mem)
    (Store {t} ptr val mem) && t.Size() == 8 && !t.IsFloat() => (MOVDstore ptr val mem)
    (Store {t} ptr val mem) && t.Size() == 4 &&  t.IsFloat() => (FMOVWstore ptr val mem)
    (Store {t} ptr val mem) && t.Size() == 8 &&  t.IsFloat() => (FMOVDstore ptr val mem)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

              BuildVhloStringV1Attr(value.AsString().str(), builder));
        } else if (value.IsInt()) {
          mlir_vector.push_back(BuildVhloIntV1Attr(value.AsInt64(), builder));
        } else if (value.IsFloat()) {
          mlir_vector.push_back(BuildVhloFloatV1Attr(value.AsFloat(), builder));
        } else if (value.IsVector()) {
          std::vector<mlir::Attribute> nested_mlir_vector =
              BuildAttributeVectorFromFlatbuffer(value.AsVector(), builder);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/check.go

    					f.Fatalf("bad arg 0 to OpLocalAddr %v", v)
    				}
    				if !v.Args[1].Type.IsMemory() {
    					f.Fatalf("bad arg 1 to OpLocalAddr %v", v)
    				}
    			}
    
    			if f.RegAlloc != nil && f.Config.SoftFloat && v.Type.IsFloat() {
    				f.Fatalf("unexpected floating-point type %v", v.LongString())
    			}
    
    			// Check types.
    			// TODO: more type checks?
    			switch c := f.Config; v.Op {
    			case OpSP, OpSB:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top