[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <878wmt6geb.fsf@basil.nowhere.org>
Date: Wed, 25 Mar 2009 11:33:32 +0100
From: Andi Kleen <andi@...stfloor.org>
To: David Miller <davem@...emloft.net>
Cc: jengelh@...ozas.de, dada1@...mosbay.com, kaber@...sh.net,
netdev@...r.kernel.org, netfilter-devel@...r.kernel.org
Subject: Re: netfilter 07/41: arp_tables: unfold two critical loops in arp_packet_match()
David Miller <davem@...emloft.net> writes:
>
> memcmp() can't make any assumptions about alignment.
Newer gcc often[1] knows how to generate specialized aligned memcmp()
based on the type alignment.
However you need to make sure the input types are right.
So in theories some casts might be enough given a new enough
compiler.
[1] not always unfortunately, sometimes it loses this information.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists