From ae221102ff58c9ca11696bfcd1fc58991f61c604 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 21 Sep 2002 21:14:11 +0000 Subject: 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 . --- sysdeps/unix/sysv/linux/i386/dl-procinfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/i386/dl-procinfo.h') diff --git a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h index d2c547f467..1c09a0d2bd 100644 --- a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h @@ -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 -- cgit 1.4.1