Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SliceMakeCopyConst (0.11 sec)

  1. test/codegen/slices.go

    	// ppc64x:`.*runtime\.makeslicecopy`
    	// ppc64x:-`.*runtime\.makeslice\(`
    	// ppc64x:-`.*runtime\.typedslicecopy
    	a := make([]*int, len(s))
    	copy(a, s)
    	return a
    }
    
    func SliceMakeCopyConst(s []int) []int {
    	// amd64:`.*runtime\.makeslicecopy`
    	// amd64:-`.*runtime\.makeslice\(`
    	// amd64:-`.*runtime\.memmove`
    	a := make([]int, 4)
    	copy(a, s)
    	return 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