2002-09-21 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Sat, 21 Sep 2002 21:14:11 +0000 (21:14 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 21 Sep 2002 21:14:11 +0000 (21:14 +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 d2c547f..1c09a0d 100644 (file)
@@ -30,7 +30,8 @@
 /* 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