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 /string/strxfrm_l.c | |
parent | d275970ab56f8ba6a3ca598aba75db4daabe5924 (diff) | |
download | glibc-535e935a284b2ec96659d1ac40eebf61321f2362.zip glibc-535e935a284b2ec96659d1ac40eebf61321f2362.tar.gz glibc-535e935a284b2ec96659d1ac40eebf61321f2362.tar.bz2 |
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 'string/strxfrm_l.c')
-rw-r--r-- | string/strxfrm_l.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/string/strxfrm_l.c b/string/strxfrm_l.c index 5519c3c..188a3d8 100644 --- a/string/strxfrm_l.c +++ b/string/strxfrm_l.c @@ -49,7 +49,7 @@ /* Group locale data for shorter parameter lists. */ typedef struct { - uint_fast32_t nrules; + uint32_t nrules; unsigned char *rulesets; USTRING_TYPE *weights; int32_t *table; @@ -135,7 +135,7 @@ do_xfrm (const USTRING_TYPE *usrc, STRING_TYPE *dest, size_t n, { int32_t weight_idx; unsigned char rule_idx; - uint_fast32_t pass; + uint32_t pass; size_t needed = 0; size_t last_needed; @@ -404,10 +404,10 @@ static size_t do_xfrm_cached (STRING_TYPE *dest, size_t n, const locale_data_t *l_data, size_t idxmax, int32_t *idxarr, const unsigned char *rulearr) { - uint_fast32_t nrules = l_data->nrules; + uint32_t nrules = l_data->nrules; unsigned char *rulesets = l_data->rulesets; USTRING_TYPE *weights = l_data->weights; - uint_fast32_t pass; + uint32_t pass; size_t needed = 0; size_t last_needed; size_t idxcnt; |