From patchwork Thu Oct 1 14:32:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 40578 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 3BB8F398B45C; Thu, 1 Oct 2020 14:32:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BB8F398B45C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1601562774; bh=ndLrLpS+gqTtCdnaAzHpyrLhobfhY5SLur0pPO8xcIU=; 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=ran+2MDFOkWLyuL0hbvXY/iP483RkExJKJceZ0ABqmAzbj9MHlL18aPxvx+tj8gdz s6xCGF/4iATSBirHga4Ooqq8ESXyDodpeOAnXu7T5pBetBNevccxPf9oP0yYb/uWyF VjqOqVbn7m5R4V9ZGr2SG9Ur5jCs7SbcxtYXUhBM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 450F3398B44A for ; Thu, 1 Oct 2020 14:32:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 450F3398B44A Received: by mail-wr1-x443.google.com with SMTP id t10so6063674wrv.1 for ; Thu, 01 Oct 2020 07:32:51 -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=ndLrLpS+gqTtCdnaAzHpyrLhobfhY5SLur0pPO8xcIU=; b=G7TmeQIw0MShlymbAQW8Yhhty7O+4Q+zFJacz2XlAykNsNA08PiOVbvCxKCsYQsnK7 e4y0l7Asnp5Y3ngHSElxI7K4YQnzyjfRb2Rd+0SWb4dsKgYn3LADfg4+ygq3HGI2oAu+ xg/uiOiiqp/ujSkWeaeOPdaGwVLKW2XNIaS/pOPJt31Nq8Vueno5YmB9sZIMPZJnqnGx b5SpZp8Fu5byUj4LXGDjglaOIjYTiE/Tqra1QzAUrs4ludcEB1gvNDyotGMIAJ5JY5Hy Igzz9piBvzy6GnN2TpjBX7S3uC28f9rnlktxKEJGYe5+KdD4iJNYbBPVyx0Y4C4xm/Wu kFeA== X-Gm-Message-State: AOAM533ua+kv9+/ZmBfRwGDm+06L62Rtht+BHFDna4b/mIAD6qX8iniq fvIt6cn7tCOQ0wilfeRBV34= X-Google-Smtp-Source: ABdhPJxjI6hu+hBPK8YBU8ZLYvKotUpHR4RSp2GQo+gnQnm+kNdAEFnLeORQyMFGGgGdan1/kY9jzg== X-Received: by 2002:adf:f290:: with SMTP id k16mr10004725wro.124.1601562770223; Thu, 01 Oct 2020 07:32:50 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id f23sm5463654wmc.3.2020.10.01.07.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 07:32:49 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v2 1/4] system_data_types.7: Add int_fastN_t family of types Date: Thu, 1 Oct 2020 16:32:01 +0200 Message-Id: <20201001143203.98803-2-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 | 77 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 4645ed5f4..c5d0b700d 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -329,6 +329,83 @@ C99 and later; POSIX.1-2001 and later. See also: .BR imaxdiv (3) .RE +.\"------------------------------------- int_fastN_t ------------------/ +.TP +.IR int_fast N _t +.RS +Include: +.IR . +Alternatively, +.IR . +.PP +.IR int_fast8_t , +.IR int_fast16_t , +.IR int_fast32_t , +.I int_fast64_t +.PP +Usually the fastest (see Notes) signed 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 +.RB [ INT_FAST N _MIN , +.BR INT_FAST N _MAX ], +substituting N by the appropriate number. +.PP +The length modifiers for the +.IR int_fast N _t +types for the +.BR printf (3) +family of functions +are expanded by macros of the forms +.BR PRIdFAST N +and +.BR PRIiFAST N +(defined in +.IR ); +resulting for example in +.B %"PRIdFAST64" +or +.B %"PRIiFAST64" +for printing +.I int_fast64_t +values. +The length modifiers for the +.IR int_fast N _t +types for the +.BR scanf (3) +family of functions +are expanded by macros of the forms +.BR SCNdFAST N +and +.BR SCNiFAST N, +(defined in +.IR ); +resulting for example in +.B %"SCNdFAST8" +or +.B %"SCNiFAST8" +for scanning +.I int_fast8_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_least N _t , +.IR int N _t , +.IR uint_fast N _t , +.IR uint_least N _t +and +.IR uint N _t +types in this page. +.RE .\"------------------------------------- intmax_t ---------------------/ .TP .I intmax_t