From 535e935a284b2ec96659d1ac40eebf61321f2362 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Wed, 13 Apr 2022 19:46:03 -0500 Subject: 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. --- locale/elem-hash.h | 2 +- locale/weight.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'locale') diff --git a/locale/elem-hash.h b/locale/elem-hash.h index 8bccfcb6d0..08dc3da77a 100644 --- a/locale/elem-hash.h +++ b/locale/elem-hash.h @@ -18,7 +18,7 @@ /* The hashing function used for the table with collation symbols. */ static int32_t __attribute__ ((pure, unused)) -elem_hash (const char *str, int_fast32_t n) +elem_hash (const char *str, int32_t n) { int32_t result = n; diff --git a/locale/weight.h b/locale/weight.h index c49f4e6d90..8be2d220f8 100644 --- a/locale/weight.h +++ b/locale/weight.h @@ -27,7 +27,7 @@ findidx (const int32_t *table, const unsigned char *extra, const unsigned char **cpp, size_t len) { - int_fast32_t i = table[*(*cpp)++]; + int32_t i = table[*(*cpp)++]; const unsigned char *cp; const unsigned char *usrc; -- cgit 1.4.1