[Top][All Lists]

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

Re: memxor

From: Simon Josefsson
Subject: Re: memxor
Date: Wed, 05 Oct 2005 15:26:22 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

> * 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?

No, at least not yet.

> 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.

I have added it.


reply via email to

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