[dpdk-dev] [PATCH v3] Implement memcmp using SIMD intrinsics

2015-06-12 Thread Ondřej Bílka
On Mon, May 18, 2015 at 01:01:42PM -0700, Ravi Kerur wrote: > Background: > After preliminary discussion with John (Zhihong) and Tim from Intel it was > decided that it would be beneficial to use AVX/SSE intrinsics for memcmp > similar to memcpy that had been implemeneted. In addition, we decided t

[dpdk-dev] rte_memcmp: comments from glibc side.

2015-06-09 Thread Ondřej Bílka
Hi, I as glibc developer that wrote current strcmp code have some comments. First is that gcc builtins for *cmp are garbage that produce rep cmpsb which is slower than byte-by-byte loop. So compile your test again with -fno-builtin-memcmp and your performance gain will probably disappear. Then t