From patchwork Thu Oct 1 14:32:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 40580 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33110398B475; Thu, 1 Oct 2020 14:32:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33110398B475 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1601562776; bh=JIm4QMqclRms4PF8Yuy7pCBIl3bsPVDdjQKB2probEc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=uU/AnBUQNgwenuCwJVlylfmgz33NoW/zBEqTmh3BDY7+R93kq5MnOhCe9nzdRYxcB 5KP4d1Q+koMvLysM8agPu4m3RnDp0J4CwbUG2b3G3HnTSeHdNI7780UcWXvhKBTkN0 iSepvSQpxXxh3v4Wgg771ZVfHk3vYRb5Nt/OuT4M= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by sourceware.org (Postfix) with ESMTPS id 28DC6398B462 for ; Thu, 1 Oct 2020 14:32:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 28DC6398B462 Received: by mail-wm1-x344.google.com with SMTP id s13so3149634wmh.4 for ; Thu, 01 Oct 2020 07:32:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JIm4QMqclRms4PF8Yuy7pCBIl3bsPVDdjQKB2probEc=; b=clrI3w52HEyYy9Lz1qh6VuNN5/tG0RSJQscX8pxr6/Ap8zLvO918uBKlH55n/wef/Y ryFz4nt8AtmB7BEQ/wVdVy6OpBnrIg08eopvzZHjxhN4fAMYEggrs+3wrms5c7BHbIyU oH/KIRTyn5gfY1lk79X4ZKms1CIihAJf3yIfjvkwE2V4rdW4LKvrQeXnEi3ffQT6fJaR 1+w6+YKxAQxZphzJ1ZhdmrrLfqjsnPxELVYNWA+g8L7aeacKzkg5tE7056RQpihGcSGq ZeOM/vRPl8JXwfB36om3yydodzwNUtSjVlm+A8cHMMMCAkwb+XSxW9VWMi7nhSE8ZtUe rndQ== X-Gm-Message-State: AOAM5319oVGDpGBG8Dya7R0tNpp0k4/6HQIjrsJ4QHf2g305xozrKugB G+Ys3fK9wmSBMjWBCizefu4= X-Google-Smtp-Source: ABdhPJyaigCbDO7jIzpkpELQnlBqqROSUbVukZaPCXrTE/Pl7k0VH33EC5TgjUu58Ky7fqDzglKQyw== X-Received: by 2002:a7b:c959:: with SMTP id i25mr311852wml.39.1601562772299; Thu, 01 Oct 2020 07:32:52 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id f23sm5463654wmc.3.2020.10.01.07.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 07:32:51 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v2 3/4] system_data_types.7: Add uint_fastN_t family of types Date: Thu, 1 Oct 2020 16:32:03 +0200 Message-Id: <20201001143203.98803-4-colomar.6.4.3@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201001143203.98803-1-colomar.6.4.3@gmail.com> References: <20201001143203.98803-1-colomar.6.4.3@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, 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-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org, gcc@gcc.gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" 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