github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/mkduff.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build ignore 6 7 // runtime·duffzero is a Duff's device for zeroing memory. 8 // The compiler jumps to computed addresses within 9 // the routine to zero chunks of memory. 10 // Do not change duffzero without also 11 // changing the uses in cmd/compile/internal/*/*.go. 12 13 // runtime·duffcopy is a Duff's device for copying memory. 14 // The compiler jumps to computed addresses within 15 // the routine to copy chunks of memory. 16 // Source and destination must not overlap. 17 // Do not change duffcopy without also 18 // changing the uses in cmd/compile/internal/*/*.go. 19 20 // See the zero* and copy* generators below 21 // for architecture-specific comments. 22 23 // mkduff generates duff_*.s. 24 package main