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 /iconv/gconv_simple.c | |
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 'iconv/gconv_simple.c')
-rw-r--r-- | iconv/gconv_simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index be8504791b..640068d9ba 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -959,8 +959,8 @@ ucs4le_internal_loop_single (struct __gconv_step *step, } \ else \ { \ - uint_fast32_t cnt; \ - uint_fast32_t i; \ + unsigned int cnt; \ + unsigned int i; \ \ if (ch >= 0xc2 && ch < 0xe0) \ { \ |