All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: David Gibson <david@gibson.dropbear.id.au>, ccan@lists.ozlabs.org
Subject: Re: [PATCH 2/2] mem: Add memswap() function
Date: Wed, 09 Sep 2015 04:08:38 +0930	[thread overview]
Message-ID: <87k2s04uz5.fsf@rustcorp.com.au> (raw)
In-Reply-To: <1441428261-6551-3-git-send-email-david@gibson.dropbear.id.au>

David Gibson <david@gibson.dropbear.id.au> 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
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

  reply	other threads:[~2015-09-08 18:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-05  4:44 [PATCH 0/2] Small extensions to the mem module David Gibson
2015-09-05  4:44 ` [PATCH 1/2] mem: Remove array_size dependency David Gibson
2015-09-05  4:44 ` [PATCH 2/2] mem: Add memswap() function David Gibson
2015-09-08 18:38   ` Rusty Russell [this message]
2015-09-09  7:37     ` 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=87k2s04uz5.fsf@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=ccan@lists.ozlabs.org \
    --cc=david@gibson.dropbear.id.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.