diff options
Diffstat (limited to 'sysdeps/x86_64/strcspn.S')
-rw-r--r-- | sysdeps/x86_64/strcspn.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/x86_64/strcspn.S b/sysdeps/x86_64/strcspn.S index a9ab81c14a..c83fe0aa51 100644 --- a/sysdeps/x86_64/strcspn.S +++ b/sysdeps/x86_64/strcspn.S @@ -1,8 +1,7 @@ /* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For AMD x86-64. - Copyright (C) 1994-1997, 2000, 2002, 2003, 2004, 2005 - Free Software Foundation, Inc. + Copyright (C) 1994-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>. @@ -116,7 +115,7 @@ L(4): addq $256, %rsp /* remove skipset */ xorl %edx,%edx orb %cl, %cl /* was last character NUL? */ cmovzq %rdx, %rax /* Yes: return NULL */ -#else +#else subq %rdx, %rax /* we have to return the number of valid characters, so compute distance to first non-valid character */ |