RE: Redundant memset in AIO read_events

From: Chen, Kenneth W (kenneth.w.chen@intel.com)
Date: Wed Jul 09 2003 - 17:43:06 EST


> <newbie>
> There might be some architecture that requires 16 byte alignment...
> how about surrounding the memcpy with
> if (sizeof(struct io_event) != 4 * sizeof(__u64)) ?
> </newbie>

The point I'm trying to make is that it is irrelevant with respect to
alignment, size, or padding. memset and struct copying has the same
length and destination address. Why bother with the memset? It's the
same as writing a code like this:

blah = 0;
blah = foo;

- Ken
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:32 EST