Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 96 for intconst (0.41 sec)

  1. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    		return true
    	}
    	// match: (ANDconst [c] (MOVVconst [d]))
    	// result: (MOVVconst [c&d])
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpLOONG64MOVVconst {
    			break
    		}
    		d := auxIntToInt64(v_0.AuxInt)
    		v.reset(OpLOONG64MOVVconst)
    		v.AuxInt = int64ToAuxInt(c & d)
    		return true
    	}
    	// match: (ANDconst [c] (ANDconst [d] x))
    	// result: (ANDconst [c&d] x)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  2. test/codegen/bitfield.go

    func ubfiz7(x uint16) uint64 {
    	return uint64(x << 10) // arm64:"UBFIZ\t[$]10, R[0-9]+, [$]6",
    }
    
    func ubfiz8(x uint8) uint64 {
    	return uint64(x << 7) // arm64:"UBFIZ\t[$]7, R[0-9]+, [$]1",
    }
    
    // merge ANDconst into ubfiz.
    func ubfiz9(x uint64) uint64 {
    	// arm64:"UBFIZ\t[$]3, R[0-9]+, [$]12",-"LSL",-"AND"
    	// s390x:"RISBGZ\t[$]49, [$]60, [$]3,",-"SLD",-"AND"
    	return (x & 0xfff) << 3
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 06:11:32 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/sccp.go

    	return true
    }
    
    // possibleConst checks if Value can be folded to const. For those Values that can
    // never become constants(e.g. StaticCall), we don't make futile efforts.
    func possibleConst(val *Value) bool {
    	if isConst(val) {
    		return true
    	}
    	switch val.Op {
    	case OpCopy:
    		return true
    	case OpPhi:
    		return true
    	case
    		// negate
    		OpNeg8, OpNeg16, OpNeg32, OpNeg64, OpNeg32F, OpNeg64F,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritePPC64.go

    		return true
    	}
    	// match: (ANDconst [c] (ANDconst [d] x))
    	// result: (ANDconst [c&d] x)
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpPPC64ANDconst {
    			break
    		}
    		d := auxIntToInt64(v_0.AuxInt)
    		x := v_0.Args[0]
    		v.reset(OpPPC64ANDconst)
    		v.AuxInt = int64ToAuxInt(c & d)
    		v.AddArg(x)
    		return true
    	}
    	// match: (ANDconst [-1] x)
    	// result: x
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  5. src/go/format/format_test.go

    }
    
    // Node is documented to not modify the AST.
    // Test that it is so even when numbers are normalized.
    func TestNodeNoModify(t *testing.T) {
    	const (
    		src    = "package p\n\nconst _ = 0000000123i\n"
    		golden = "package p\n\nconst _ = 123i\n"
    	)
    
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, "", src, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtRendererOtherModifiersProvider.kt

                        if (symbol.isNoinline) add(KtTokens.NOINLINE_KEYWORD)
                    }
    
                    if (symbol is KaKotlinPropertySymbol) {
                        if (symbol.isConst) add(KtTokens.CONST_KEYWORD)
                        if (symbol.isLateInit) add(KtTokens.LATEINIT_KEYWORD)
                    }
    
                    if (symbol is KaNamedClassOrObjectSymbol) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

            }
        }
    
        @Override
        public void visit(FieldDeclaration fieldDeclaration, ClassMetaDataRepository<ClassMetaData> arg) {
            boolean isConst = getCurrentClass().isInterface() || (fieldDeclaration.isStatic() && fieldDeclaration.isFinal());
            if (isConst) {
                fieldDeclaration.getVariables().forEach(variableDeclarator -> {
                    String constName = variableDeclarator.getNameAsString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 21 13:27:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewritePPC64latelower.go

    		}
    		break
    	}
    	return false
    }
    func rewriteValuePPC64latelower_OpPPC64AND(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (AND <t> x:(MOVDconst [m]) n)
    	// cond: t.Size() <= 2
    	// result: (ANDconst [int64(int16(m))] n)
    	for {
    		t := v.Type
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			x := v_0
    			if x.Op != OpPPC64MOVDconst {
    				continue
    			}
    			m := auxIntToInt64(x.AuxInt)
    			n := v_1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. src/fmt/scan_test.go

    		if r.i != i {
    			t.Fatalf("bad scan: expected %d got %d", i, r.i)
    		}
    		i++
    	}
    	if i-1 != intCount {
    		t.Fatalf("bad scan count: expected %d got %d", intCount, i-1)
    	}
    }
    
    func BenchmarkScanInts(b *testing.B) {
    	b.StopTimer()
    	ints := makeInts(intCount)
    	var r RecursiveInt
    	for i := 0; i < b.N; i++ {
    		buf := bytes.NewBuffer(ints)
    		b.StartTimer()
    		scanInts(&r, buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteARM.go

    		return true
    	}
    	// match: (ANDconst [c] (MOVWconst [d]))
    	// result: (MOVWconst [c&d])
    	for {
    		c := auxIntToInt32(v.AuxInt)
    		if v_0.Op != OpARMMOVWconst {
    			break
    		}
    		d := auxIntToInt32(v_0.AuxInt)
    		v.reset(OpARMMOVWconst)
    		v.AuxInt = int32ToAuxInt(c & d)
    		return true
    	}
    	// match: (ANDconst [c] (ANDconst [d] x))
    	// result: (ANDconst [c&d] x)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
Back to top