Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for DUFFCOPY (0.2 sec)

  1. test/fixedbugs/issue13171.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Make sure the compiler knows that DUFFCOPY clobbers X0
    
    import "fmt"
    
    //go:noinline
    func f(x float64) float64 {
    	// y is allocated to X0
    	y := x + 5
    	// marshals z before y.  Marshaling z
    	// calls DUFFCOPY.
    	return g(z, y)
    }
    
    //go:noinline
    func g(b [64]byte, y float64) float64 {
    	return y
    }
    
    var z [64]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 00:13:35 UTC 2016
    - 588 bytes
    - Viewed (0)
  2. test/codegen/issue38554.go

    // license that can be found in the LICENSE file.
    
    // Test that we are zeroing directly instead of
    // copying a large zero value. Issue 38554.
    
    package codegen
    
    func retlarge() [256]byte {
    	// amd64:-"DUFFCOPY"
    	return [256]byte{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 24 23:58:10 UTC 2020
    - 355 bytes
    - Viewed (0)
  3. test/fixedbugs/issue42944.go

    // license that can be found in the LICENSE file.
    
    // Issue 42944: address of callee args area should only be short-lived
    // and never across a call.
    
    package p
    
    type T [10]int // trigger DUFFCOPY when passing by value, so it uses the address
    
    func F() {
    	var x T
    	var i int
    	for {
    		x = G(i) // no autotmp live at this and next calls
    		H(i, x)
    	}
    }
    
    func G(int) T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 03 21:34:39 UTC 2020
    - 513 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/symtab.go

    	CgoCheckMemmove   *obj.LSym
    	CgoCheckPtrWrite  *obj.LSym
    	CheckPtrAlignment *obj.LSym
    	Deferproc         *obj.LSym
    	Deferprocat       *obj.LSym
    	DeferprocStack    *obj.LSym
    	Deferreturn       *obj.LSym
    	Duffcopy          *obj.LSym
    	Duffzero          *obj.LSym
    	GCWriteBarrier    [8]*obj.LSym
    	Goschedguarded    *obj.LSym
    	Growslice         *obj.LSym
    	InterfaceSwitch   *obj.LSym
    	Memmove           *obj.LSym
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:26 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/loong64/a.out.go

    	REGLINK = REG_R1
    	REGSP   = REG_R3
    	REGRET  = REG_R20 // not use
    	REGARG  = -1      // -1 disables passing the first argument in register
    	REGRT1  = REG_R20 // reserved for runtime, duffzero and duffcopy
    	REGRT2  = REG_R21 // reserved for runtime, duffcopy
    	REGCTXT = REG_R29 // context for closures
    	REGG    = REG_R22 // G in loong64
    	REGTMP  = REG_R30 // used by the assembler
    	FREGRET = REG_F0  // not use
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. test/codegen/strings.go

    	bsink = []byte("012345")
    
    	// 3978425819141910832 = 0x3736353433323130
    	// 7306073769690871863 = 0x6564636261393837
    	// amd64:`MOVQ\t\$3978425819141910832`,`MOVQ\t\$7306073769690871863`
    	//   386:`MOVL\t\$858927408, \(`,`DUFFCOPY`
    	// arm64:`MOVD\t\$3978425819141910832`,`MOVD\t\$7306073769690871863`,`MOVD\t\$15`
    	//  wasm:`I64Const\t\$3978425819141910832`,`I64Store\t\$0`,`I64Const\t\$7306073769690871863`,`I64Store\t\$7`
    	bsink = []byte("0123456789abcde")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:17:28 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/mips/a.out.go

    	REGSB   = REG_R28
    	REGLINK = REG_R31
    	REGRET  = REG_R1
    	REGARG  = -1      /* -1 disables passing the first argument in register */
    	REGRT1  = REG_R1  /* reserved for runtime, duffzero and duffcopy */
    	REGRT2  = REG_R2  /* reserved for runtime, duffcopy */
    	REGCTXT = REG_R22 /* context for closures */
    	REGG    = REG_R30 /* G */
    	REGTMP  = REG_R23 /* used by the linker */
    	FREGRET = REG_F0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. src/runtime/mkduff.go

    // runtime·duffcopy is a Duff's device for copying memory.
    // The compiler jumps to computed addresses within
    // the routine to copy chunks of memory.
    // Source and destination must not overlap.
    // Do not change duffcopy without also
    // changing the uses in cmd/compile/internal/*/*.go.
    
    // See the zero* and copy* generators below
    // for architecture-specific comments.
    
    // mkduff generates duff_*.s.
    package main
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:04:21 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. src/cmd/internal/goobj/mkbuiltin.go

    	{"deferprocStack", 1},
    	{"deferreturn", 1},
    	{"newproc", 1},
    	{"panicoverflow", 1},
    	{"sigpanic", 1},
    
    	// compiler backend inserted calls
    	{"gcWriteBarrier", 1},
    	{"duffzero", 1},
    	{"duffcopy", 1},
    
    	// assembler backend inserted calls
    	{"morestack", 0},        // asm function, ABI0
    	{"morestackc", 0},       // asm function, ABI0
    	{"morestack_noctxt", 0}, // asm function, ABI0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.deferreturn", 1},
    	{"runtime.newproc", 1},
    	{"runtime.panicoverflow", 1},
    	{"runtime.sigpanic", 1},
    	{"runtime.gcWriteBarrier", 1},
    	{"runtime.duffzero", 1},
    	{"runtime.duffcopy", 1},
    	{"runtime.morestack", 0},
    	{"runtime.morestackc", 0},
    	{"runtime.morestack_noctxt", 0},
    	{"type:int8", 0},
    	{"type:*int8", 0},
    	{"type:uint8", 0},
    	{"type:*uint8", 0},
    	{"type:int16", 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top