[ccan] [PATCH 0/3] mem: Small enhancements

David Gibson david at gibson.dropbear.id.au
Thu Sep 10 07:54:52 AEST 2015


Several small enhancements to the mem module.

Changes since v1:
 * Added memoverlaps() function
  * Added an assert for memswap() if called with overlapping regions.

David Gibson (3):
  mem: Remove array_size dependency
  mem: Add function to check whether memory ranges overlap
  mem: Add memswap() function

 ccan/mem/_info      |  1 -
 ccan/mem/mem.c      | 24 ++++++++++++++++++++++++
 ccan/mem/mem.h      | 27 +++++++++++++++++++++++++++
 ccan/mem/test/api.c | 41 +++++++++++++++++++++++++++++++++++++++--
 4 files changed, 90 insertions(+), 3 deletions(-)

-- 
2.4.3



More information about the ccan mailing list