~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to sysdeps/i386/stpncpy.S

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* copy no more then N bytes from SRC to DEST, returning the address of
2
2
   the terminating '\0' in DEST.
3
3
   For Intel 80x86, x>=3.
4
 
   Copyright (C) 1994-1997,2000,2002,2005 Free Software Foundation, Inc.
 
4
   Copyright (C) 1994-1997,2000,2002,2005,2011 Free Software Foundation, Inc.
5
5
   This file is part of the GNU C Library.
6
6
   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
7
7
   Some bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
56
56
        ALIGN(4)
57
57
 
58
58
        /* Four times unfolded loop with two loop counters.  We get the
59
 
           the third value (the source address) by using the index+base
 
59
           third value (the source address) by using the index+base
60
60
           addressing mode.  */
61
61
L(2):   movb (%eax,%esi), %dl   /* load current char */
62
62
        movb %dl, (%eax)        /* and store it */