Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for intconst (0.14 sec)

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

    		return "types.Types[types.TUNSAFEPTR]"
    
    	case *ast.ArrayType:
    		if t.Len == nil {
    			return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt))
    		}
    		return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len))
    	case *ast.ChanType:
    		dir := "types.Cboth"
    		switch t.Dir {
    		case ast.SEND:
    			dir = "types.Csend"
    		case ast.RECV:
    			dir = "types.Crecv"
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/rangefunc/rewrite.go

    	var thenList []syntax.Stmt
    	if zeroNext {
    		clr := &syntax.AssignStmt{
    			Lhs: r.next(),
    			Rhs: r.intConst(0),
    		}
    		thenList = append(thenList, clr)
    	}
    	for _, then := range thens {
    		thenList = append(thenList, then)
    	}
    	nif := &syntax.IfStmt{
    		Cond: r.cond(op, r.next(), r.intConst(c)),
    		Then: &syntax.BlockStmt{
    			List: thenList,
    		},
    	}
    	return nif
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  3. src/internal/bytealg/compare_wasm.s

    	I32Load8S $0
    	Tee R4
    	I32Eq
    	If
    	Get R0
    	I32Const $1
    	I32Add
    	Set R0
    	Get R1
    	I32Const $1
    	I32Add
    	Set R1
    	I32Const $0
    	Get R2
    	I32Const $-1
    	I32Add
    	Tee R2
    	I32Eqz
    	BrIf $3
    	Drop
    	Br $1
    	End
    	End
    	Get R3
    	I32Const $255
    	I32And
    	Get R4
    	I32Const $255
    	I32And
    	I32Sub
    	Else
    	I32Const $0
    	End
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 11 04:00:35 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  4. src/internal/bytealg/indexbyte_wasm.s

    	Set R4
    	Block
    		Block
    			Get R2
    			I32Const $0
    			I32Ne
    			Tee R3
    			Get R0
    			I32Const $3
    			I32And
    			I32Const $0
    			I32Ne
    			I32And
    			If
    				Loop
    					Get R0
    					I32Load8U $0
    					Get R1
    					I32Eq
    					BrIf $2
    					Get R2
    					I32Const $-1
    					I32Add
    					Tee R2
    					I32Const $0
    					I32Ne
    					Tee R3
    					Get R0
    					I32Const $1
    					I32Add
    					Tee R0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 03:59:19 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  5. src/runtime/asm_wasm.s

    	I64Const $8
    	Call	gcWriteBarrier<>(SB)
    	Return
    TEXT runtime·gcWriteBarrier2<ABIInternal>(SB),NOSPLIT,$0
    	I64Const $16
    	Call	gcWriteBarrier<>(SB)
    	Return
    TEXT runtime·gcWriteBarrier3<ABIInternal>(SB),NOSPLIT,$0
    	I64Const $24
    	Call	gcWriteBarrier<>(SB)
    	Return
    TEXT runtime·gcWriteBarrier4<ABIInternal>(SB),NOSPLIT,$0
    	I64Const $32
    	Call	gcWriteBarrier<>(SB)
    	Return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. test/slice3.go

    		"v20",
    	}
    
    	parse := func(s string) (n int, isconst bool) {
    		if s == "vminus1" {
    			return -1, false
    		}
    		isconst = true
    		if s[0] == 'v' {
    			isconst = false
    			s = s[1:]
    		}
    		n, _ = strconv.Atoi(s)
    		return n, isconst
    	}
    
    	const Cap = 10 // cap of slice, array
    
    	for _, base := range []string{"array", "slice"} {
    		for _, i := range index {
    			iv, iconst := parse(i)
    			for _, j := range index {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/MIPS.rules

    // fold extensions and ANDs together
    (MOVBUreg (ANDconst [c] x)) => (ANDconst [c&0xff] x)
    (MOVHUreg (ANDconst [c] x)) => (ANDconst [c&0xffff] x)
    (MOVBreg (ANDconst [c] x)) && c & 0x80   == 0 => (ANDconst [c&0x7f] x)
    (MOVHreg (ANDconst [c] x)) && c & 0x8000 == 0 => (ANDconst [c&0x7fff] x)
    
    // don't extend before store
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (SGTconst [c] (MOVBUreg _)) && 0xff < c => (MOVVconst [1])
    (SGTconst [c] (MOVBUreg _)) && c < 0 => (MOVVconst [0])
    (SGTUconst [c] (MOVBUreg _)) && 0xff < uint64(c) => (MOVVconst [1])
    (SGTconst [c] (MOVHreg _)) && 0x7fff < c => (MOVVconst [1])
    (SGTconst [c] (MOVHreg _)) && c <= -0x8000 => (MOVVconst [0])
    (SGTconst [c] (MOVHUreg _)) && 0xffff < c => (MOVVconst [1])
    (SGTconst [c] (MOVHUreg _)) && c < 0 => (MOVVconst [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (SGTconst [c] (MOVBUreg _)) && 0xff < c => (MOVVconst [1])
    (SGTconst [c] (MOVBUreg _)) && c < 0 => (MOVVconst [0])
    (SGTUconst [c] (MOVBUreg _)) && 0xff < uint64(c) => (MOVVconst [1])
    (SGTconst [c] (MOVHreg _)) && 0x7fff < c => (MOVVconst [1])
    (SGTconst [c] (MOVHreg _)) && c <= -0x8000 => (MOVVconst [0])
    (SGTconst [c] (MOVHUreg _)) && 0xffff < c => (MOVVconst [1])
    (SGTconst [c] (MOVHUreg _)) && c < 0 => (MOVVconst [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/wasm/anames.go

    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top