diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-04-13 19:46:03 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-04-13 21:23:04 -0500 |
commit | 535e935a284b2ec96659d1ac40eebf61321f2362 (patch) | |
tree | 05e8df88daa71e7dc7d39d7cdb994045e85e69b7 /sysdeps/unix | |
parent | d275970ab56f8ba6a3ca598aba75db4daabe5924 (diff) | |
download | glibc-535e935a284b2ec96659d1ac40eebf61321f2362.tar.gz glibc-535e935a284b2ec96659d1ac40eebf61321f2362.tar.xz glibc-535e935a284b2ec96659d1ac40eebf61321f2362.zip |
Replace {u}int_fast{16|32} with {u}int32_t
On 32-bit machines this has no affect. On 64-bit machines {u}int_fast{16|32} are set as {u}int64_t which is often not ideal. Particularly x86_64 this change both saves code size and may save instruction cost. Full xcheck passes on x86_64.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/dl-sysdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-sysdep.c b/sysdeps/unix/sysv/linux/dl-sysdep.c index c90f109b11..a67c454673 100644 --- a/sysdeps/unix/sysv/linux/dl-sysdep.c +++ b/sysdeps/unix/sysv/linux/dl-sysdep.c @@ -269,7 +269,7 @@ _dl_discover_osversion (void) } expected_note = { { sizeof "Linux", sizeof (ElfW(Word)), 0 }, "Linux" }; const ElfW(Phdr) *const phdr = GLRO(dl_sysinfo_map)->l_phdr; const ElfW(Word) phnum = GLRO(dl_sysinfo_map)->l_phnum; - for (uint_fast16_t i = 0; i < phnum; ++i) + for (unsigned int i = 0; i < phnum; ++i) if (phdr[i].p_type == PT_NOTE) { const ElfW(Addr) start = (phdr[i].p_vaddr |