From: Roland McGrath Date: Tue, 24 Sep 2002 04:33:53 +0000 (+0000) Subject: 2002-09-21 Roland McGrath X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eea2f1ab9127bd27d30c9cd6c14af5234cee8c6;p=thirdparty%2Fglibc.git 2002-09-21 Roland McGrath * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM): Correct the value so it covers all platforms, and is computed from _DL_PLATFORMS_COUNT rather than hard-wired. From Andrew Suffield . --- diff --git a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h index d1658fafde6..d1eacfd235e 100644 --- a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h @@ -1,5 +1,5 @@ /* Linux/i386 version of processor capability information handling macros. - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -34,7 +34,8 @@ extern const char _dl_x86_platforms[][5]; /* Start at 48 to reserve some space. */ #define _DL_FIRST_PLATFORM 48 /* Mask to filter out platforms. */ -#define _DL_HWCAP_PLATFORM (7ULL << _DL_FIRST_PLATFORM) +#define _DL_HWCAP_PLATFORM (((1ULL << _DL_PLATFORMS_COUNT) - 1) \ + << _DL_FIRST_PLATFORM) static inline int