]> Cypherpunks repositories - gostls13.git/commit
cmd/6g: faster memmove/memset-like code using unaligned load/stores.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 7 Feb 2014 22:58:21 +0000 (23:58 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 7 Feb 2014 22:58:21 +0000 (23:58 +0100)
commit2b93c4dd06932ee9a5770353c75956910ace1c9b
tree6634af8920cd2efd91ebd8a9353280ce3612cd5e
parentd0591d5ebdd5137154cf797bcad22918f6ccd356
cmd/6g: faster memmove/memset-like code using unaligned load/stores.

This changes makes sgen and clearfat use unaligned instructions for
the trailing bytes, like the runtime memmove does, resulting in faster
code when manipulating types whose size is not a multiple of 8.

LGTM=khr
R=khr, iant, rsc
CC=golang-codereviews
https://golang.org/cl/51740044
src/cmd/6g/cgen.c
src/cmd/6g/ggen.c