Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for isMnt (0.12 sec)

  1. src/math/big/ratmarsh.go

    	z.a.abs = z.a.abs.setBytes(buf[j:i])
    	z.b.abs = z.b.abs.setBytes(buf[i:])
    	return nil
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    func (x *Rat) MarshalText() (text []byte, err error) {
    	if x.IsInt() {
    		return x.a.MarshalText()
    	}
    	return x.marshal(), nil
    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    func (z *Rat) UnmarshalText(text []byte) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/fmt/print.go

    	default:
    		p.unknownType(f)
    	}
    }
    
    // intFromArg gets the argNumth element of a. On return, isInt reports whether the argument has integer type.
    func intFromArg(a []any, argNum int) (num int, isInt bool, newArgNum int) {
    	newArgNum = argNum
    	if argNum < len(a) {
    		num, isInt = a[argNum].(int) // Almost always OK.
    		if !isInt {
    			// Work harder.
    			switch v := reflect.ValueOf(a[argNum]); v.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

        mapping.map(op->getOperand(arg.index()), arg.value());
      }
      return builder.clone(*op, mapping)->getResults();
    }
    
    FailureOr<int32_t> CastI64ToI32(const int64_t value) {
      if (!llvm::isInt<32>(value)) {
        DEBUG_WITH_TYPE(
            "mlir-quant-attrs-and-constraints",
            llvm::dbgs()
                << "Tried to cast " << value
                << "from int64 to int32, but lies out of range of int32.\n");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/universe.go

    	s.Def = ir.NewNameAt(src.NoXPos, s, types.Types[types.TBLANK])
    
    	s = types.BuiltinPkg.Lookup("nil")
    	s.Def = NodNil()
    
    	// initialize okfor
    	for et := types.Kind(0); et < types.NTYPE; et++ {
    		if types.IsInt[et] || et == types.TIDEAL {
    			okforeq[et] = true
    			types.IsOrdered[et] = true
    			okforarith[et] = true
    			okforadd[et] = true
    			okforand[et] = true
    			ir.OKForConst[et] = true
    			types.IsSimple[et] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                type.isUShort -> KaConstantValue.KaUnsignedShortConstantValue((value as Number).toShort().toUShort(), expression)
                type.isInt -> KaConstantValue.KaIntConstantValue((value as Number).toInt(), expression)
                type.isUInt -> KaConstantValue.KaUnsignedIntConstantValue((value as Number).toInt().toUInt(), expression)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/value.go

    }
    
    // Get returns the value at the given index.
    //
    // If the index is negative or greater than the size of the list, an error is returned.
    func (lv *ListValue) Get(idx ref.Val) ref.Val {
    	iv, isInt := idx.(types.Int)
    	if !isInt {
    		return types.ValOrErr(idx, "unsupported index: %v", idx)
    	}
    	i := int(iv)
    	if i < 0 || i >= len(lv.Entries) {
    		return types.NewErr("index out of bounds: %v", idx)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  7. internal/kms/context.go

    		// but don't work in JSONP, which has to be evaluated as JavaScript,
    		// and can lead to security holes there. It is valid JSON to
    		// escape them, so we do so unconditionally.
    		// See http://timelessrepo.com/json-isnt-a-javascript-subset for discussion.
    		if c == '\u2028' || c == '\u2029' {
    			if start < i {
    				dst.WriteString(s[start:i])
    			}
    			dst.WriteString(`\u202`)
    			dst.WriteByte(hexTable[c&0xF])
    			i += size
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  8. src/math/big/ratconv.go

    func (x *Rat) RatString() string {
    	if x.IsInt() {
    		return x.a.String()
    	}
    	return x.String()
    }
    
    // FloatString returns a string representation of x in decimal form with prec
    // digits of precision after the radix point. The last digit is rounded to
    // nearest, with halves rounded away from zero.
    func (x *Rat) FloatString(prec int) string {
    	var buf []byte
    
    	if x.IsInt() {
    		buf = x.a.Append(buf, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

        } else if (value.IsString()) {
          mlir_vector.push_back(
              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()) {
    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/math/big/rat.go

    	return z
    }
    
    // Sign returns:
    //
    //	-1 if x <  0
    //	 0 if x == 0
    //	+1 if x >  0
    func (x *Rat) Sign() int {
    	return x.a.Sign()
    }
    
    // IsInt reports whether the denominator of x is 1.
    func (x *Rat) IsInt() bool {
    	return len(x.b.abs) == 0 || x.b.abs.cmp(natOne) == 0
    }
    
    // Num returns the numerator of x; it may be <= 0.
    // The result is a reference to x's numerator; it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top