Skip to content

Commit

Permalink
Compile {memcpy,strcmp}-sse2-unaligned.S only for libc
Browse files Browse the repository at this point in the history
{memcpy,strcmp}-sse2-unaligned.S aren't needed in ld.so.

	* sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
	only for libc.
	* sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
  • Loading branch information
H.J. Lu committed Aug 5, 2015
1 parent 05a910f commit 3b8d2eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-08-05 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
only for libc.
* sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.

2015-08-05 Wilco Dijkstra <wdijkstr@arm.com>

* string/string.h: (mempcpy): Redirect to __mempcpy_inline.
Expand Down
4 changes: 4 additions & 0 deletions sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#if IS_IN (libc)

#include <sysdep.h>

#include "asm-syntax.h"
Expand Down Expand Up @@ -169,3 +171,5 @@ L(between_5_8):
movl %eax, -4(%rdi,%rdx)
jmp L(return)
END(__memcpy_sse2_unaligned)

#endif
4 changes: 4 additions & 0 deletions sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#if IS_IN (libc)

#include "sysdep.h"

ENTRY ( __strcmp_sse2_unaligned)
Expand Down Expand Up @@ -207,3 +209,5 @@ L(different):
subl %ecx, %eax
ret
END (__strcmp_sse2_unaligned)

#endif

0 comments on commit 3b8d2eb

Please sign in to comment.