aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-09-06 21:53:03 -0400
committerUlrich Drepper <drepper@gmail.com>2011-09-06 21:53:03 -0400
commitceaa0c5dc3f86d3d3126abdd592a3c4fdc457255 (patch)
treed45fed46e986e9ab480c266b4e68c39e818f1e1c /sysdeps/x86_64
parenta77d3c17dc6517636c1cf6ab9c6bb8c257772354 (diff)
downloadglibc-ceaa0c5dc3f86d3d3126abdd592a3c4fdc457255.zip
glibc-ceaa0c5dc3f86d3d3126abdd592a3c4fdc457255.tar.gz
glibc-ceaa0c5dc3f86d3d3126abdd592a3c4fdc457255.tar.bz2
Move Atom-optimized code out of the way and together
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S2
-rw-r--r--sysdeps/x86_64/multiarch/strlen-no-bsf.S2
-rw-r--r--sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S2
-rw-r--r--sysdeps/x86_64/sysdep.h4
4 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S b/sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S
index 9e9c916..4c5a48c 100644
--- a/sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S
+++ b/sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S
@@ -23,7 +23,7 @@
# include <sysdep.h>
# include "asm-syntax.h"
- .text
+ atom_text_section
ENTRY (__strchr_sse2_no_bsf)
movd %esi, %xmm1
movq %rdi, %rcx
diff --git a/sysdeps/x86_64/multiarch/strlen-no-bsf.S b/sysdeps/x86_64/multiarch/strlen-no-bsf.S
index c730e0a..a430e5f 100644
--- a/sysdeps/x86_64/multiarch/strlen-no-bsf.S
+++ b/sysdeps/x86_64/multiarch/strlen-no-bsf.S
@@ -26,7 +26,7 @@
# define RETURN ret
- .section .text.sse2,"ax",@progbits
+ atom_text_section
ENTRY (__strlen_no_bsf)
# endif
xor %eax, %eax
diff --git a/sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S b/sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S
index bbc94c3..f839ecf 100644
--- a/sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S
+++ b/sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S
@@ -23,7 +23,7 @@
# include <sysdep.h>
# include "asm-syntax.h"
- .text
+ atom_text_section
ENTRY (__strrchr_sse2_no_bsf)
movd %rsi, %xmm1
diff --git a/sysdeps/x86_64/sysdep.h b/sysdeps/x86_64/sysdep.h
index 1d35f8f..d61e126 100644
--- a/sysdeps/x86_64/sysdep.h
+++ b/sysdeps/x86_64/sysdep.h
@@ -1,5 +1,5 @@
/* Assembler macros for x86-64.
- Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2011 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
@@ -114,4 +114,6 @@ lose: \
# endif
#endif
+#define atom_text_section .section ".text.atom", "ax"
+
#endif /* __ASSEMBLER__ */