Re: [PATCH 1/1] core-kernel: use multiply instead of shifts in hash_64

2012-07-12 Thread Andrew Hunter
On Tue, Jul 10, 2012 at 6:35 AM, Michael Tokarev wrote: > On 03.07.2012 00:25, Andrew Hunter wrote: >> diff --git a/include/linux/hash.h b/include/linux/hash.h >> index b80506b..daabc3d 100644 >> --- a/include/linux/hash.h >> +++ b/include/linux/hash.h >> @@ -34,7 +34,9 @@ >> static inline u64

Re: [PATCH 1/1] core-kernel: use multiply instead of shifts in hash_64

2012-07-12 Thread Andrew Hunter
On Tue, Jul 10, 2012 at 6:35 AM, Michael Tokarev m...@tls.msk.ru wrote: On 03.07.2012 00:25, Andrew Hunter wrote: diff --git a/include/linux/hash.h b/include/linux/hash.h index b80506b..daabc3d 100644 --- a/include/linux/hash.h +++ b/include/linux/hash.h @@ -34,7 +34,9 @@ static inline u64

Re: [PATCH 1/1] core-kernel: use multiply instead of shifts in hash_64

2012-07-10 Thread Michael Tokarev
On 03.07.2012 00:25, Andrew Hunter wrote: > diff --git a/include/linux/hash.h b/include/linux/hash.h > index b80506b..daabc3d 100644 > --- a/include/linux/hash.h > +++ b/include/linux/hash.h > @@ -34,7 +34,9 @@ > static inline u64 hash_64(u64 val, unsigned int bits) > { > u64 hash = val; >

Re: [PATCH 1/1] core-kernel: use multiply instead of shifts in hash_64

2012-07-10 Thread Michael Tokarev
On 03.07.2012 00:25, Andrew Hunter wrote: diff --git a/include/linux/hash.h b/include/linux/hash.h index b80506b..daabc3d 100644 --- a/include/linux/hash.h +++ b/include/linux/hash.h @@ -34,7 +34,9 @@ static inline u64 hash_64(u64 val, unsigned int bits) { u64 hash = val; - +#if