[PATCH 1/2] powerpc: Add 64bit optimised memcmp

Anton Blanchard anton at samba.org
Wed Jan 21 23:06:39 AEDT 2015


Hi Arnd,

> Would it help to also add a way for an architecture to override
> memcmp_pages() with its own implementation? That way you could
> skip the unaligned part, hardcode the loop counter and avoid the
> preempt_disable() in kmap_atomic().

Good idea. We could also have a generic implementation that did long
comparisons, so everyone would get a decent speed up.

Anton


More information about the Linuxppc-dev mailing list