Thread (23 messages) flat view 23 messages, 4 authors, 2015-03-24

Re: [v3 PATCH 2/9] rhashtable: Eliminate unnecessary branch in rht_key_hashfn

From: Thomas Graf <tgraf@suug.ch>
Date: 2015-03-23 13:58:15

On 03/24/15 at 12:50am, Herbert Xu wrote:
When rht_key_hashfn is called from rhashtable itself and params
is equal to ht->p, there is no point in checking params.key_len
and falling back to ht->p.key_len.

For some reason gcc couldn't figure out that params is the same
as ht->p.  So let's help it by only checking params.key_len when
it's a constant.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Thomas Graf <tgraf@suug.ch>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help