]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2002-09-21 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Tue, 24 Sep 2002 04:33:53 +0000 (04:33 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 24 Sep 2002 04:33:53 +0000 (04:33 +0000)
* 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 <asuffield@debian.org>.

sysdeps/unix/sysv/linux/i386/dl-procinfo.h

index d1658fafde68550d053f3b6142f728b00c80932d..d1eacfd235efd9dbf271d69d625b74fb5b1c7726 100644 (file)
@@ -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 <drepper@cygnus.com>, 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