This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] powerpc: strcasestr optmization for power8




On 03/18/2016 12:12 PM, Rajalakshmi Srinivasaraghavan wrote:
This patch optimizes strcasestr function for power >= 8 systems.  The average
improvement of this optimization is ~40% and compares 16 bytes at a time
using vector instructions.  This patch is tested on powerpc64 and powerpc64le.
Attached the benchresults with this new patch.

Attached missing benchresult.
2016-03-08  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>

	* sysdeps/powerpc/locale-defines.sym:  Add new macros.
	* sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasestr().
	* sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
	* sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
	* sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
	* sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
	* sysdeps/powerpc/powerpc64/power8/Makefile: New file.
	* sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
	* sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.

--
Thanks
Rajalakshmi S

Attachment: benchresult
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]