Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for progx (0.16 sec)

  1. src/regexp/syntax/prog.go

    package syntax
    
    import (
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // Compiled program.
    // May not belong in this package, but convenient for now.
    
    // A Prog is a compiled regular expression program.
    type Prog struct {
    	Inst   []Inst
    	Start  int // index of start instruction
    	NumCap int // number of InstCapture insts in re
    }
    
    // An InstOp is an instruction opcode.
    type InstOp uint8
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/cmd/covdata/testdata/prog2.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"os"
    	"prog/dep"
    )
    
    //go:noinline
    func fifth() {
    	println("hubba")
    }
    
    //go:noinline
    func sixth() {
    	println("wha?")
    }
    
    func main() {
    	println(dep.Dep1())
    	if len(os.Args) > 1 {
    		fifth()
    	} else {
    		sixth()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 396 bytes
    - Viewed (0)
  3. src/cmd/covdata/testdata/prog1.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"os"
    	"prog/dep"
    )
    
    //go:noinline
    func first() {
    	println("whee")
    }
    
    //go:noinline
    func second() {
    	println("oy")
    }
    
    //go:noinline
    func third(x int) int {
    	if x != 0 {
    		return 42
    	}
    	println("blarg")
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 616 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/arch.go

    	ZeroRange func(*objw.Progs, *obj.Prog, int64, int64, *uint32) *obj.Prog
    
    	Ginsnop func(*objw.Progs) *obj.Prog
    
    	// SSAMarkMoves marks any MOVXconst ops that need to avoid clobbering flags.
    	SSAMarkMoves func(*State, *ssa.Block)
    
    	// SSAGenValue emits Prog(s) for the Value.
    	SSAGenValue func(*State, *ssa.Value)
    
    	// SSAGenBlock emits end-of-block Progs. SSAGenValue should be called
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/s390x/ggen.go

    // multiple instructions (i.e. loop unrolling).
    // Must be between 256 and 4096.
    const clearLoopCutoff = 1024
    
    // zerorange clears the stack in the given range.
    func zerorange(pp *objw.Progs, p *obj.Prog, off, cnt int64, _ *uint32) *obj.Prog {
    	if cnt == 0 {
    		return p
    	}
    
    	// Adjust the frame to account for LR.
    	off += base.Ctxt.Arch.FixedFrameSize
    	reg := int16(s390x.REGSP)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/internal/objfile/elf.go

    			break
    		}
    	}
    	if addr == 0 || eaddr < addr {
    		return nil
    	}
    	size := eaddr - addr
    	data := make([]byte, size)
    	for _, prog := range f.elf.Progs {
    		if prog.Vaddr <= addr && addr+size-1 <= prog.Vaddr+prog.Filesz-1 {
    			if _, err := prog.ReadAt(data, int64(addr-prog.Vaddr)); err != nil {
    				return nil
    			}
    			return data
    		}
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 20:44:50 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/riscv64/ggen.go

    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/objw"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/obj/riscv"
    )
    
    func zeroRange(pp *objw.Progs, p *obj.Prog, off, cnt int64, _ *uint32) *obj.Prog {
    	if cnt == 0 {
    		return p
    	}
    
    	// Adjust the frame to account for LR.
    	off += base.Ctxt.Arch.FixedFrameSize
    
    	if cnt < int64(4*types.PtrSize) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/internal/buildid/note.go

    // header. The caller has already opened filename, to get f, and read
    // at least 4 kB out, in data.
    func readELF(name string, f *os.File, data []byte) (buildid string, err error) {
    	// Assume the note content is in the data, already read.
    	// Rewrite the ELF header to set shoff and shnum to 0, so that we can pass
    	// the data to elf.NewFile and it will decode the Prog list but not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 20:40:42 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. test/convinline.go

    	"float64",
    }
    
    func main() {
    	var prog bytes.Buffer
    	fmt.Fprintf(&prog, "package main\n\n")
    	fmt.Fprintf(&prog, "import ( \"fmt\"; \"math\" )\n")
    	for _, t1 := range types {
    		for _, t2 := range types {
    			fmt.Fprintf(&prog, "func %[1]s_to_%[2]s(x %[1]s) %[2]s { return %[2]s(x) }\n", t1, t2)
    		}
    	}
    
    	var outputs []string
    	var exprs []string
    
    	fmt.Fprintf(&prog, "var (\n")
    	for _, t1 := range types {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  10. src/regexp/backtrack.go

    // the backtracker using prog.
    func maxBitStateLen(prog *syntax.Prog) int {
    	if !shouldBacktrack(prog) {
    		return 0
    	}
    	return maxBacktrackVector / len(prog.Inst)
    }
    
    // shouldBacktrack reports whether the program is too
    // long for the backtracker to run.
    func shouldBacktrack(prog *syntax.Prog) bool {
    	return len(prog.Inst) <= maxBacktrackProg
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top