From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by sourceware.org (Postfix) with ESMTPS id 58118398B16B for ; Thu, 1 Oct 2020 15:25:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 58118398B16B Received: by mail-wr1-x443.google.com with SMTP id e16so6293908wrm.2 for ; Thu, 01 Oct 2020 08:25:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FMSh0Mcln2UHRHtQYp4EkZIoC23BI/spVomT7YlgCHs=; b=SW590RY7A+bc5wf1TzfRUNo0FBY6xMYJNW8ieaGdPnSa4WpRoR4b6uGzcQCbPL2c4I wG+h64ww5gcNO7O5jAEHwq13jD6u8EoEpNvStS0fr2aJ6DT4LAQET8ByjZBzVdO5CRwL SJ80F6oB5XEj1kPumEXLLVNKDZuarJhaz5KghiQ9U23TV8/F7IzpBJPBXNdmsxj+XnMr MiTZroIfvSjm7GVG1+F1dVi+Gjd3cWqjqnPmw60oWdl6INQKg4/N1nCVkkGN0MDrgKza akLDu0eWG7B+cHxnAPQZLFaozGQbXBuPDiOxJkD8YopG7rvm03FD7yKFU3j0yXaD3HMi 4Z+w== X-Gm-Message-State: AOAM532LIhTB/XR63VzvxM/2xnRCb3pmvJfdHZAuw5lMHMj+fjTaa5iZ 5WVlCM06RU5soBw6ytX6sjnpH0/N9KI= X-Google-Smtp-Source: ABdhPJxzTEyX9DxYFVyKD/WW2u/U+i2/F3MW9nge8tHtK5z8+RK3eZLcxhW3pd/O/wxebfDKDDJ6Xw== X-Received: by 2002:a5d:460c:: with SMTP id t12mr9733449wrq.225.1601565903221; Thu, 01 Oct 2020 08:25:03 -0700 (PDT) Received: from [192.168.178.63] (dynamic-077-009-049-048.77.9.pool.telefonica.de. [77.9.49.48]) by smtp.gmail.com with ESMTPSA id b8sm467278wmb.4.2020.10.01.08.25.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2020 08:25:02 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, gcc@gcc.gnu.org, libc-alpha@sourceware.org Subject: Re: [PATCH v2 3/4] system_data_types.7: Add uint_fastN_t family of types To: Alejandro Colomar References: <20201001143203.98803-1-colomar.6.4.3@gmail.com> <20201001143203.98803-4-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Thu, 1 Oct 2020 17:25:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201001143203.98803-4-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Thu, 01 Oct 2020 15:25:05 -0000 Thanks, Alex. Applied. On 10/1/20 4:32 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar > --- > man7/system_data_types.7 | 80 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 80 insertions(+) > > diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 > index c5d0b700d..c130b7256 100644 > --- a/man7/system_data_types.7 > +++ b/man7/system_data_types.7 > @@ -1348,6 +1348,86 @@ See also: > .BR getpwnam (2), > .BR credentials (7) > .RE > +.\"------------------------------------- uint_fastN_t -----------------/ > +.TP > +.IR uint_fast N _t > +.RS > +Include: > +.IR . > +Alternatively, > +.IR . > +.PP > +.IR uint_fast8_t , > +.IR uint_fast16_t , > +.IR uint_fast32_t , > +.I uint_fast64_t > +.PP > +Usually the fastest (see Notes) unsigned integer type > +of a width of at least N bits, > +N being the value specified in its type name. > +According to the C language standard, they shall be > +capable of storing values in the range [0, > +.BR UINT_FAST N _MAX ], > +substituting N by the appropriate number. > +.PP > +The length modifiers for the > +.IR uint_fast N _t > +types for the > +.BR printf (3) > +family of functions > +are expanded by macros of the forms > +.BR PRIuFAST N, > +.BR PRIoFAST N, > +.BR PRIxFAST N > +and > +.BR PRIXFAST N > +(defined in > +.IR ); > +resulting for example in > +.B %"PRIuFAST32" > +or > +.B %"PRIxFAST32" > +for printing > +.I uint_fast32_t > +values. > +The length modifiers for the > +.IR uint_fast N _t > +types for the > +.BR scanf (3) > +family of functions > +are expanded by macros of the forms > +.BR SCNuFAST N, > +.BR SCNoFAST N, > +.BR SCNxFAST N > +and > +.BR SCNXFAST N > +(defined in > +.IR ); > +resulting for example in > +.B %"SCNuFAST16" > +or > +.B %"SCNxFAST16" > +for scanning > +.I uint_fast16_t > +values. > +.PP > +Conforming to: > +C99 and later; POSIX.1-2001 and later. > +.PP > +Notes: > +Where there is no single type that is fastest for all purposes, > +the implementation may choose any type > +with the required signedness and at least the minimum width. > +.PP > +See also the > +.IR int_fast N _t , > +.IR int_least N _t , > +.IR int N _t , > +.IR uint_least N _t > +and > +.IR uint N _t > +types in this page. > +.RE > .\"------------------------------------- uintmax_t --------------------/ > .TP > .I uintmax_t > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/