mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
Update.
2002-12-29 Jakub Jelinek <jakub@redhat.com> * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set in hwcap.
This commit is contained in:
parent
bab09b2661
commit
d21a5ab6b0
@ -1,3 +1,8 @@
|
||||
2002-12-29 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
|
||||
in hwcap.
|
||||
|
||||
2002-12-28 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* misc/sys/cdefs.h (__attribute_deprecated__): New #define.
|
||||
|
@ -475,7 +475,7 @@ add_to_cache (const char *path, const char *lib, int flags,
|
||||
new_entry->bits_hwcap = 0;
|
||||
|
||||
/* Count the number of bits set in the masked value. */
|
||||
for (i = 0; (~((1ULL << i) - 1) & hwcap) != 0; ++i)
|
||||
for (i = 0; (~((1ULL << i) - 1) & hwcap) != 0 && i < 8 * sizeof (hwcap); ++i)
|
||||
if ((hwcap & (1ULL << i)) != 0)
|
||||
++new_entry->bits_hwcap;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user