diff options
author | Andreas Jaeger <aj@suse.de> | 2002-08-10 18:12:27 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2002-08-10 18:12:27 +0000 |
commit | 07e335474a4733c322b7b60feb46efd2dcd7937e (patch) | |
tree | ba9364b888da783b8269339798b939513f8de17b /sysdeps/i386/strchr.S | |
parent | b9b91868d49b1853bdb15e7514eb5fbc578926a9 (diff) | |
download | glibc-07e335474a4733c322b7b60feb46efd2dcd7937e.tar glibc-07e335474a4733c322b7b60feb46efd2dcd7937e.tar.gz glibc-07e335474a4733c322b7b60feb46efd2dcd7937e.tar.bz2 glibc-07e335474a4733c322b7b60feb46efd2dcd7937e.zip |
Add comment.
Diffstat (limited to 'sysdeps/i386/strchr.S')
-rw-r--r-- | sysdeps/i386/strchr.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/i386/strchr.S b/sysdeps/i386/strchr.S index 26f6ac6a9d..f6a6de19a8 100644 --- a/sysdeps/i386/strchr.S +++ b/sysdeps/i386/strchr.S @@ -1,6 +1,6 @@ /* strchr (str, ch) -- Return pointer to first occurrence of CH in STR. For Intel 80x86, x>=3. - Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> @@ -254,7 +254,9 @@ L(71): addl $4, %eax /* We now scan for the byte in which the character was matched. But we have to take care of the case that a NUL char is - found before this in the dword. */ + found before this in the dword. Note that we XORed %ecx + with the byte we're looking for, therefore the tests below look + reversed. */ L(7): testb %cl, %cl /* is first byte C? */ jz L(6) /* yes => return pointer */ |