Messages in this thread |  | | Date | Thu, 12 Dec 2013 10:46:02 -0800 | From | Christoph Hellwig <> | Subject | Re: [PATCH 1/2] dcache: allow word-at-a-time name hashing with big-endian CPUs |
| |
> +#ifdef __BIG_ENDIAN > + mask = ~(~0ul >> tcount*8); > +#else > mask = ~(~0ul << tcount*8); > +#endif > return unlikely(!!((a ^ b) & mask));
> +#ifdef __BIG_ENDIAN > + mask = ~(~0ul >> len*8); > +#else > mask = ~(~0ul << len*8); > +#endif
This should really be a common helper.
|  |