mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 21:23:52 +08:00
Move Atom-optimized code out of the way and together
This commit is contained in:
parent
a77d3c17dc
commit
ceaa0c5dc3
10
ChangeLog
10
ChangeLog
@ -1,5 +1,15 @@
|
||||
2011-09-06 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* sysdeps/i386/sysdep.h: Define atom_text_section.
|
||||
* sysdeps/x86_64/sysdep.h: Likewise.
|
||||
* sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
|
||||
section with atom_text_section.
|
||||
* sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
|
||||
* sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
|
||||
* sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
|
||||
* sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
|
||||
* sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
|
||||
|
||||
* sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
|
||||
* sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
|
||||
already be defined. Change to take two parameters and don't assign
|
||||
|
@ -40,7 +40,7 @@
|
||||
# define STR1 PARMS
|
||||
# define STR2 STR1+4
|
||||
|
||||
.text
|
||||
atom_text_section
|
||||
ENTRY (__strchr_sse2_bsf)
|
||||
|
||||
ENTRANCE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* strlen with SSE2 and BSF
|
||||
Copyright (C) 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2010, 2011 Free Software Foundation, Inc.
|
||||
Contributed by Intel Corporation.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
#define RETURN POP (%edi); POP (%esi); ret; \
|
||||
cfi_restore_state; cfi_remember_state
|
||||
|
||||
.text
|
||||
atom_text_section
|
||||
ENTRY ( __strlen_sse2_bsf)
|
||||
ENTRANCE
|
||||
mov STR(%esp), %edi
|
||||
|
@ -37,7 +37,7 @@
|
||||
# define STR1 PARMS
|
||||
# define STR2 STR1+4
|
||||
|
||||
.text
|
||||
atom_text_section
|
||||
ENTRY (__strrchr_sse2_bsf)
|
||||
|
||||
mov STR1(%esp), %ecx
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for i386.
|
||||
Copyright (C) 1991-93,95,96,98,2002,2003,2005,2006
|
||||
Copyright (C) 1991-93,95,96,98,2002,2003,2005,2006,2011
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -167,4 +167,6 @@ __i686.get_pc_thunk.reg: \
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define atom_text_section .section ".text.atom", "ax"
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
@ -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
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
# define RETURN ret
|
||||
|
||||
.section .text.sse2,"ax",@progbits
|
||||
atom_text_section
|
||||
ENTRY (__strlen_no_bsf)
|
||||
# endif
|
||||
xor %eax, %eax
|
||||
|
@ -23,7 +23,7 @@
|
||||
# include <sysdep.h>
|
||||
# include "asm-syntax.h"
|
||||
|
||||
.text
|
||||
atom_text_section
|
||||
ENTRY (__strrchr_sse2_no_bsf)
|
||||
|
||||
movd %rsi, %xmm1
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user