summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2005-04-23 18:45:36 +0000
committeralc <alc@FreeBSD.org>2005-04-23 18:45:36 +0000
commit8710214da3628d020a2de7c10bca22a8b6c94013 (patch)
tree21f5d7b0181722a7dba2becf3b723e5d48f73676 /lib/libc/amd64
parentd4451ef08bea0cfe06f2c152f9b37200201362ae (diff)
downloadFreeBSD-src-8710214da3628d020a2de7c10bca22a8b6c94013.zip
FreeBSD-src-8710214da3628d020a2de7c10bca22a8b6c94013.tar.gz
Optimize the instruction alignment.
Diffstat (limited to 'lib/libc/amd64')
-rw-r--r--lib/libc/amd64/string/strcpy.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/amd64/string/strcpy.S b/lib/libc/amd64/string/strcpy.S
index c67406d..04676fa 100644
--- a/lib/libc/amd64/string/strcpy.S
+++ b/lib/libc/amd64/string/strcpy.S
@@ -32,7 +32,6 @@ ENTRY(strcpy)
* Align source to a word boundary.
* Consider unrolling loop?
*/
- .align 4
.Lalign:
testb $7,%sil
je .Lword_aligned
@@ -44,7 +43,7 @@ ENTRY(strcpy)
jne .Lalign
ret
- .align 4
+ .p2align 4
.Lloop:
movq %rdx,(%rdi)
addq $8,%rdi
OpenPOWER on IntegriCloud