Use sizeof, not alignof, in memchr and memrchr.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Jul 2004 17:34:38 +0000 (17:34 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Jul 2004 17:34:38 +0000 (17:34 +0000)
lib/ChangeLog

index e3d5dfc..022d9d2 100644 (file)
@@ -1,3 +1,10 @@
+2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * memchr.c (UNALIGNED_P): Use sizeof, not alignof, for better
+       performance on m68k-linux.  Reported by Andreas Schwab in
+       <http://lists.gnu.org/archive/html/bug-coreutils/2004-07/msg00104.html>.
+       * memrchr.c (UNALIGNED_P): Likewise.
+       
 2004-07-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        * userspec.c: Include <stdbool.h>, "inttostr.h".