bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memxor


From: Ralf Wildenhues
Subject: Re: memxor
Date: Wed, 5 Oct 2005 14:37:42 +0200
User-agent: Mutt/1.5.11

* Simon Josefsson wrote on Wed, Oct 05, 2005 at 02:10:14PM CEST:
> 
> +/* Written by Simon Josefsson.  The interface was inspired by memxor
> +   in Niels Möller's Nettle. */
*snip*

> +void *memxor (void *dest, const void *src, size_t n);
*snip*

Random comment the casual reader: Do you need to allow cases where src
and dest overlap?  IOW, can't you add restrict qualifiers, and if
necessary provide another function for unrestricted, potentially
overlapping areas?

The compiler should be able to optimize the restricted case nicely, I
would guess.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]