runtime: auto-generate duff routines

This makes it easier to experiment with alternative implementations.

While we're here, update the comments.

No functional changes. Passes toolstash -cmp.

Change-Id: I428535754908f0fdd7cc36c214ddb6e1e60f376e
Reviewed-on: https://go-review.googlesource.com/8310
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index 5f0ca02..2387d9a 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -7,6 +7,7 @@
 import _ "unsafe" // for go:linkname
 
 //go:generate go run wincallback.go
+//go:generate go run mkduff.go
 
 var ticks struct {
 	lock mutex