]> git.itanic.dy.fi Git - membench/commit
Vectorize memory transfers master
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 8 Oct 2010 18:42:20 +0000 (21:42 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 8 Oct 2010 18:42:20 +0000 (21:42 +0300)
commitc0f6ff51ae3dbeae5ba4ee0fea0b2c151759f02a
tree9f8367aae25c1156040f48e943bac7e056e0bdcf
parent7a82a5bfb95c27a658e1ee3ed3b893aa46a25e0b
Vectorize memory transfers

Modern CPUs have instructions that can operate with several words of
data at once. In order to allow compiler to take advantage of such
instructions, the memory copies need to be taking place from array to
array. This makes the memory copy less CPU bound.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
membench.c