From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zimbra.cs.ucla.edu (zimbra.cs.ucla.edu [131.179.128.68]) by sourceware.org (Postfix) with ESMTPS id 51BC7385840F for ; Wed, 13 Apr 2022 23:38:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 51BC7385840F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5D4C61600ED; Wed, 13 Apr 2022 16:38:57 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UEWZ5v6GXUpP; Wed, 13 Apr 2022 16:38:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 653B41600F1; Wed, 13 Apr 2022 16:38:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Qsb7eBDmUXKe; Wed, 13 Apr 2022 16:38:56 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 49C8E1600ED; Wed, 13 Apr 2022 16:38:56 -0700 (PDT) Message-ID: <5e6e21de-b437-35fd-7f5a-d08400f93e1e@cs.ucla.edu> Date: Wed, 13 Apr 2022 16:38:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v1] Replace {u}int_fast{16|32} with {u}int32_t Content-Language: en-US To: Noah Goldstein Cc: GNU C Library References: <20220411165835.4028009-1-goldstein.w.n@gmail.com> <9a1dd0bc-57cc-0fa7-0d61-1b9cbae247a0@cs.ucla.edu> <92b7db75-0536-d28b-0618-34519305223b@cs.ucla.edu> <56ae0132-0509-31a9-a003-29c752575332@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2022 23:38:59 -0000 On 4/13/22 16:28, Noah Goldstein wrote: > he reason not replacing fast32 with int is int can be 2-bytes so it can > be incorrect. No, int cannot be 2 8-bit bytes in GNU code. GNU code can assume that int is at least 32 bits. See the first paragraph of: https://www.gnu.org/prep/standards/html_node/CPU-Portability.html Similarly, POSIX code can assume that int is at least 32 bits; look for "INT_MIN" and "INT_MAX" in: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html