Comment on Swapping two blocks of memory inside a larger block, in constant memoryparentComments−Someone8mowith accesses aligned to cache lines.You want that, but can be tricky because the from and to regions may have different alignment.Also, the XOR trick introduces data dependencies. That slows down pipelined CPUs.
Comments
You want that, but can be tricky because the from and to regions may have different alignment.
Also, the XOR trick introduces data dependencies. That slows down pipelined CPUs.