about summary refs log tree commit diff
path: root/sysdeps/i386/i486
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-16 12:42:10 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-16 12:42:10 +0000
commit7cd1708f76f78fe027a02ad89f58975174a5bd5a (patch)
tree5c951f44b4366840a588703b339ebd48aa6fa83b /sysdeps/i386/i486
parent4811cda92fe53e14f3f7af5cfd1bbdd31f9e7a40 (diff)
downloadglibc-7cd1708f76f78fe027a02ad89f58975174a5bd5a.tar.gz
glibc-7cd1708f76f78fe027a02ad89f58975174a5bd5a.tar.xz
glibc-7cd1708f76f78fe027a02ad89f58975174a5bd5a.zip
Update.
	* sysdeps/i386/i486/bits/string.h (memcmp): Correctly set flags
	for the case N == 0.

	* db2/Makefile (distribute): Add LICENSE.
Diffstat (limited to 'sysdeps/i386/i486')
-rw-r--r--sysdeps/i386/i486/bits/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/i386/i486/bits/string.h b/sysdeps/i386/i486/bits/string.h
index e20f037ab7..84421b40a2 100644
--- a/sysdeps/i386/i486/bits/string.h
+++ b/sysdeps/i386/i486/bits/string.h
@@ -172,6 +172,7 @@ memcmp (__const void *__s1, __const void *__s2, size_t __n)
   register int __res;
   __asm__ __volatile__
     ("cld\n\t"
+     "testl %3,%3\n\t"
      "repe; cmpsb\n\t"
      "je	1f\n\t"
      "sbbl	%0,%0\n\t"