CCAN Archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: ccan@lists.ozlabs.org, rusty@rustcorp.com.au
Subject: [PATCH 0/3] mem: Small enhancements
Date: Thu, 10 Sep 2015 07:54:52 +1000	[thread overview]
Message-ID: <1441835695-4341-1-git-send-email-david@gibson.dropbear.id.au> (raw)

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

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

             reply	other threads:[~2015-09-09 21:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 21:54 David Gibson [this message]
2015-09-09 21:54 ` [PATCH 1/3] mem: Remove array_size dependency David Gibson
2015-09-09 21:54 ` [PATCH 2/3] mem: Add function to check whether memory ranges overlap David Gibson
2015-09-09 21:54 ` [PATCH 3/3] mem: Add memswap() function David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441835695-4341-1-git-send-email-david@gibson.dropbear.id.au \
    --to=david@gibson.dropbear.id.au \
    --cc=ccan@lists.ozlabs.org \
    --cc=rusty@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).