Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SliceMakeCopyNoOptNoHeapAlloc (0.2 sec)

  1. test/codegen/slices.go

    	// amd64:-`.*runtime\.objectnew`
    	a := *new([]*int)
    	// amd64:-`.*runtime\.makeslicecopy`
    	// amd64:`.*runtime\.typedslicecopy`
    	copy(a, s)
    	return a
    }
    
    func SliceMakeCopyNoOptNoHeapAlloc(s []*int) int {
    	// amd64:-`.*runtime\.makeslicecopy`
    	a := make([]*int, 4)
    	// amd64:-`.*runtime\.makeslicecopy`
    	// amd64:`.*runtime\.typedslicecopy`
    	copy(a, s)
    	return cap(a)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 18:57:27 UTC 2023
    - 9.8K bytes
    - Viewed (0)
Back to top