Re: [PATCH 2/2] mem: Add memswap() function
Rusty Russell <[email protected]> Wed, 09 Sep 2015 04:08:38 +0930
| Newsgroups | org.ozlabs.lists.ccan |
|---|---|
| Message-ID | <[email protected]> |
David Gibson <[email protected]> writes: > Add a memswap() function to the mem module, which exchanges two (equal > sized, non-overlapping) memory regions. Nice! I wonder about a #if CCAN_MEM_DEBUG'd test which assert() tests for no overlap. Though maybe it's cheap enough that a simple assert() is always OK? Cheers, Rusty. _______________________________________________ ccan mailing list [email protected] https://lists.ozlabs.org/listinfo/ccan