Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Adjust fts_pow2() for LP64 before Ross bricks me.



details:   https://anonhg.NetBSD.org/src/rev/4fedfa04e7db
branches:  trunk
changeset: 475856:4fedfa04e7db
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Aug 27 20:02:14 1999 +0000

description:
Adjust fts_pow2() for LP64 before Ross bricks me.

diffstat:

 lib/libc/gen/__fts13.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r a6e8e4d0bb96 -r 4fedfa04e7db lib/libc/gen/__fts13.c
--- a/lib/libc/gen/__fts13.c    Fri Aug 27 20:02:05 1999 +0000
+++ b/lib/libc/gen/__fts13.c    Fri Aug 27 20:02:14 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __fts13.c,v 1.23 1999/08/27 18:33:29 mycroft Exp $     */
+/*     $NetBSD: __fts13.c,v 1.24 1999/08/27 20:02:14 mycroft Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)fts.c      8.6 (Berkeley) 8/14/94";
 #else
-__RCSID("$NetBSD: __fts13.c,v 1.23 1999/08/27 18:33:29 mycroft Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.24 1999/08/27 20:02:14 mycroft Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -1013,6 +1013,12 @@
        x |= x>>4;
        x |= x>>8;
        x |= x>>16;
+#if LONG_BIT > 32
+       x |= x>>32;
+#endif
+#if LONG_BIT > 64
+       x |= x>>64;
+#endif
        x++;
        return (x);
 }



Home | Main Index | Thread Index | Old Index