diff options
author | Roland McGrath <roland@gnu.org> | 2002-09-24 04:33:53 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-09-24 04:33:53 +0000 |
commit | 2eea2f1ab9127bd27d30c9cd6c14af5234cee8c6 (patch) | |
tree | 3671f61b43b5c4d77b24580a1cd1546c5faa27fe | |
parent | c058ffbf079663fff212b6f0b2cec8b035ada4d6 (diff) | |
download | glibc-2eea2f1ab9127bd27d30c9cd6c14af5234cee8c6.zip glibc-2eea2f1ab9127bd27d30c9cd6c14af5234cee8c6.tar.gz glibc-2eea2f1ab9127bd27d30c9cd6c14af5234cee8c6.tar.bz2 |
2002-09-21 Roland McGrath <roland@redhat.com>
* 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>.
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/dl-procinfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h index d1658fa..d1eacfd 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 <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 |