1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

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.
This commit is contained in:
Noah Goldstein
2022-04-13 19:46:03 -05:00
parent d275970ab5
commit 535e935a28
19 changed files with 34 additions and 34 deletions

View File

@@ -118,7 +118,7 @@ _nss_dns_getcanonname_r (const char *name, char *buffer, size_t buflen,
goto unavail;
/* Check whether type and class match. */
uint_fast16_t type;
short int type;
NS_GET16 (type, ptr);
if (type == qtypes[i])
{