forked from lattera/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc: Optimize memrchr for power8
Vectorized loops are used for sizes greater than 32B to improve performance over power7 optimization. This shows as an average of 25% improvement depending on the position of search character. The performance is same for shorter strings.
- Loading branch information
1 parent
397286e
commit 59ba2d2
Showing
6 changed files
with
380 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
2017-10-02 Rajalakshmi Srinivasaraghavan <[email protected]> | ||
|
||
* sysdeps/powerpc/powerpc64/multiarch/Makefile | ||
(sysdep_routines): Add memrchr_power8. | ||
* sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c | ||
(memrchr): Add __memrchr_power8 to list of memrchr functions. | ||
* sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: | ||
New file. | ||
* sysdeps/powerpc/powerpc64/multiarch/memrchr.c | ||
(memrchr): Add __memrchr_power8 to ifunc list. | ||
* sysdeps/powerpc/powerpc64/power8/memrchr.S: New file. | ||
|
||
2017-10-01 H.J. Lu <[email protected]> | ||
|
||
[BZ #18822] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* Optimized memrchr implementation for PowerPC64/POWER8. | ||
Copyright (C) 2017 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
The GNU C Library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
The GNU C Library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with the GNU C Library; if not, see | ||
<http://www.gnu.org/licenses/>. */ | ||
|
||
#include <sysdep.h> | ||
|
||
#define MEMRCHR __memrchr_power8 | ||
|
||
#undef libc_hidden_builtin_def | ||
#define libc_hidden_builtin_def(name) | ||
#undef weak_alias | ||
#define weak_alias(name,alias) | ||
|
||
#include <sysdeps/powerpc/powerpc64/power8/memrchr.S> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.