about summary refs log tree commit diff
path: root/sysdeps/i386/i586/memset.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/i586/memset.S')
-rw-r--r--sysdeps/i386/i586/memset.S47
1 files changed, 24 insertions, 23 deletions
diff --git a/sysdeps/i386/i586/memset.S b/sysdeps/i386/i586/memset.S
index 1e8a9c2111..fb96a369b9 100644
--- a/sysdeps/i386/i586/memset.S
+++ b/sysdeps/i386/i586/memset.S
@@ -1,25 +1,26 @@
 /* memset/bzero -- set memory area to CH/0
-Highly optimized version for ix85, x>=5.
-Copyright (C) 1996 Free Software Foundation, Inc.
-This file is part of the GNU C Library.
-Contributed by Torbjorn Granlund, <tege@matematik.su.se>
-
-The GNU C Library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public License as
-published by the Free Software Foundation; either version 2 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
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with the GNU C Library; see the file COPYING.LIB.  If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  */
+   Highly optimized version for ix85, x>=5.
+   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Torbjorn Granlund, <tege@matematik.su.se>
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 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
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
 
 #include <sysdep.h>
+#include "asm-syntax.h"
 
 /*
    INPUT PARAMETERS:
@@ -52,7 +53,7 @@ ENTRY (memset)
 /* If less than 36 bytes to write, skip tricky code (it wouldn't work).  */
 	cmpl	$36, %edx
 	movl	%edx, %ecx	/* needed when branch is taken! */
-	jl	L2
+	jl	L(2)
 
 /* First write 0-3 bytes to make the pointer 32-bit aligned.  */
 	movl	%edi, %ecx	/* Copy ptr to ecx... */
@@ -66,7 +67,7 @@ ENTRY (memset)
 	movl	(%edi), %ecx	/* Fetch destination cache line */
 
 	.align	2, 0x90		/* supply 0x90 for broken assemblers */
-L1:	movl	28(%edi), %ecx	/* allocate cache line for destination */
+L(1):	movl	28(%edi), %ecx	/* allocate cache line for destination */
 	subl	$32, %edx	/* decr loop count */
 	movl	%eax, 0(%edi)	/* store words pairwise */
 	movl	%eax, 4(%edi)
@@ -77,12 +78,12 @@ L1:	movl	28(%edi), %ecx	/* allocate cache line for destination */
 	movl	%eax, 24(%edi)
 	movl	%eax, 28(%edi)
 	leal	32(%edi), %edi	/* update destination pointer */
-	jge	L1
+	jge	L(1)
 
 	leal	32(%edx), %ecx	/* reset offset count */
 
 /* Write last 0-7 full 32-bit words (up to 8 words if loop was skipped).  */
-L2:	shrl	$2, %ecx	/* convert byte count to longword count */
+L(2):	shrl	$2, %ecx	/* convert byte count to longword count */
 	rep
 	stosl