Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 96 for intconst (0.13 sec)

  1. src/cmd/compile/internal/typecheck/expr.go

    	n.Cap = DefaultLit(Expr(n.Cap), types.Types[types.TINT])
    
    	if ir.IsConst(n.Len, constant.Int) && ir.Int64Val(n.Len) < 0 {
    		base.Fatalf("len for OSLICEHEADER must be non-negative")
    	}
    
    	if ir.IsConst(n.Cap, constant.Int) && ir.Int64Val(n.Cap) < 0 {
    		base.Fatalf("cap for OSLICEHEADER must be non-negative")
    	}
    
    	if ir.IsConst(n.Len, constant.Int) && ir.IsConst(n.Cap, constant.Int) && constant.Compare(n.Len.Val(), token.GTR, n.Cap.Val()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/operand.go

    	// )
    	if expr != "" {
    		buf.WriteByte(')')
    	}
    
    	return buf.String()
    }
    
    func (x *operand) String() string {
    	return operandString(x, nil)
    }
    
    // setConst sets x to the untyped constant for literal lit.
    func (x *operand) setConst(k syntax.LitKind, lit string) {
    	var kind BasicKind
    	switch k {
    	case syntax.IntLit:
    		kind = UntypedInt
    	case syntax.FloatLit:
    		kind = UntypedFloat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

    import org.jetbrains.kotlin.fir.FirElement
    import org.jetbrains.kotlin.fir.declarations.FirCallableDeclaration
    import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction
    import org.jetbrains.kotlin.fir.declarations.utils.isConst
    import org.jetbrains.kotlin.fir.declarations.utils.isFinal
    import org.jetbrains.kotlin.fir.declarations.utils.isStatic
    import org.jetbrains.kotlin.fir.expressions.*
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiKotlinPropertySymbol.kt

        }
    
        override val isLateInit: Boolean
            get() = withValidityAssertion { psi.hasModifier(KtTokens.LATEINIT_KEYWORD) }
    
        override val isConst: Boolean
            get() = withValidityAssertion { psi.hasModifier(KtTokens.CONST_KEYWORD) }
    
        override val hasGetter: Boolean
            get() = withValidityAssertion { true }
    
        override val hasSetter: Boolean
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/go/types/operand.go

    	// )
    	if expr != "" {
    		buf.WriteByte(')')
    	}
    
    	return buf.String()
    }
    
    func (x *operand) String() string {
    	return operandString(x, nil)
    }
    
    // setConst sets x to the untyped constant for literal lit.
    func (x *operand) setConst(k token.Token, lit string) {
    	var kind BasicKind
    	switch k {
    	case token.INT:
    		kind = UntypedInt
    	case token.FLOAT:
    		kind = UntypedFloat
    	case token.IMAG:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteARM64latelower.go

    		v.AddArg2(x, v0)
    		return true
    	}
    	return false
    }
    func rewriteValueARM64latelower_OpARM64ANDconst(v *Value) bool {
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (ANDconst [c] x)
    	// cond: !isARM64bitcon(uint64(c))
    	// result: (AND x (MOVDconst [c]))
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		x := v_0
    		if !(!isARM64bitcon(uint64(c))) {
    			break
    		}
    		v.reset(OpARM64AND)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/expr.go

    	if t.IsArray() {
    		n.SetBounded(bounded(r, t.NumElem()))
    		if base.Flag.LowerM != 0 && n.Bounded() && !ir.IsConst(n.Index, constant.Int) {
    			base.Warn("index bounds check elided")
    		}
    	} else if ir.IsConst(n.X, constant.String) {
    		n.SetBounded(bounded(r, int64(len(ir.StringVal(n.X)))))
    		if base.Flag.LowerM != 0 && n.Bounded() && !ir.IsConst(n.Index, constant.Int) {
    			base.Warn("index bounds check elided")
    		}
    	}
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    			n.SetType(nil)
    			return n
    		}
    		if !checkmake(t, "len", &l) || r != nil && !checkmake(t, "cap", &r) {
    			n.SetType(nil)
    			return n
    		}
    		if ir.IsConst(l, constant.Int) && r != nil && ir.IsConst(r, constant.Int) && constant.Compare(l.Val(), token.GTR, r.Val()) {
    			base.Errorf("len larger than cap in make(%v)", t)
    			n.SetType(nil)
    			return n
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. internal/s3select/sql/funceval.go

    	v, err := e.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    
    	switch castType {
    	case castInt, castInteger:
    		i, err := intCast(v)
    		return FromInt(i), err
    
    	case castFloat:
    		f, err := floatCast(v)
    		return FromFloat(f), err
    
    	case castString:
    		s, err := stringCast(v)
    		return FromString(s), err
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/memcombine.go

    	ptr := a[0].store.Args[0]
    
    	// Check for constant stores
    	isConst := true
    	for i := int64(0); i < n; i++ {
    		switch a[i].store.Args[1].Op {
    		case OpConst32, OpConst16, OpConst8, OpConstBool:
    		default:
    			isConst = false
    			break
    		}
    	}
    	if isConst {
    		// Modify root to do all the stores.
    		var c int64
    		mask := int64(1)<<(8*size) - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top