]> git.ozlabs.org Git - ccan/commit
mem: Add memswap() function
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 9 Sep 2015 11:27:32 +0000 (21:27 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 13 Sep 2015 09:17:14 +0000 (19:17 +1000)
commit428d3b0217b32892c2fd309358619a4877113833
tree3d4b52ae1bf2f3999f501e5d610fd17c10c47f91
parent8f6126000bfebc71f566ce56387f86fcd567e2c7
mem: Add memswap() function

Add a memswap() function to the mem module, which exchanges two (equal
sized, non-overlapping) memory regions.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/mem/mem.c
ccan/mem/mem.h
ccan/mem/test/api.c