From patchwork Fri Jun 16 11:09:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rical Jasan X-Patchwork-Id: 776662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wpyN06jVkz9s81 for ; Fri, 16 Jun 2017 21:10:40 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="g9OblCa/"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=H2BqHu1nHcDcDe48DCM4Hh+PdmcJx1qxmgfAVQwiGrpGjKPx+I6yl k714EVySpfaWbuv4ySPk29TMwhz0JpRRrU2A9Zpg1PgQ3Ekqbjqft6nxEm/oPDVV sekxYmd7zuy/9+0LOtgYrFG47PPNxkML3B+RwVR6yLDruwmSQCgI/g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=4ZyJ3F/6O1liAOgEvz92RoYd2Ts=; b=g9OblCa/SGUmst19Dc5yWDvjVBKf UcsDVXHUE6PX+na9nmTYMBvSkimkMwpt/f4mWAi3/+rfEvH33bwjHu5yTCguTu5f j3hO7lHrCpKpazdlFJYbDpRI9IuUhJXUsj9arPIXF3Hezc+s11kLGnDfn3RvNRi/ oVTDrIYmCdDEYJA= Received: (qmail 88100 invoked by alias); 16 Jun 2017 11:09:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 87707 invoked by uid 89); 16 Jun 2017 11:09:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=derivatives, H*MI:pacific X-HELO: smtp.pacific.net From: Rical Jasan To: libc-alpha@sourceware.org Cc: Joseph Myers , Zack Weinberg , Carlos O'Donell , Michael Kerrisk Subject: manual: Complete @standards in lang.texi. Date: Fri, 16 Jun 2017 04:09:51 -0700 Message-Id: <20170616110951.24732-4-ricaljasan@pacific.net> * manual/lang.texi (LDBL_MANT_DIG): Add annotation. (LDBL_DIG): Likewise. (LDBL_MIN_EXP): Likewise. (LDBL_MIN_10_EXP): Likewise. (LDBL_MAX_EXP): Likewise. (LDBL_MAX_10_EXP): Likewise. (LDBL_MAX): Likewise. (LDBL_MIN): Likewise. (LDBL_EPSILON): Likewise. (FLT_ROUNDS): Change standard from ISO to C90. (FLT_RADIX): Likewise. (FLT_MANT_DIG, DBL_MANT_DIG): Likewise. (FLT_DIG, DBL_DIG): Likewise. (FLT_MIN_EXP, DBL_MIN_EXP): Likewise. (FLT_MIN_10_EXP, DBL_MIN_10_EXP): Likewise. (FLT_MAX_EXP, DBL_MAX_EXP): Likewise. (FLT_MAX_10_EXP, DBL_MAX_10_EXP): Likewise. (FLT_MAX, DBL_MAX): Likewise. (FLT_MIN, DBL_MIN): Likewise. (FLT_EPSILON, DBL_EPSILON): Likewise. --- manual/lang.texi | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/manual/lang.texi b/manual/lang.texi index cacbdfb7c5..c4b641d4e1 100644 --- a/manual/lang.texi +++ b/manual/lang.texi @@ -969,7 +969,7 @@ supported are suitable. @vtable @code @item FLT_ROUNDS -@standards{ISO, float.h} +@standards{C90, float.h} This value characterizes the rounding mode for floating point addition. The following values indicate standard rounding modes: @@ -1008,14 +1008,14 @@ the IEEE single-precision standard. @end smallexample @item FLT_RADIX -@standards{ISO, float.h} +@standards{C90, float.h} This is the value of the base, or radix, of the exponent representation. This is guaranteed to be a constant expression, unlike the other macros described in this section. The value is 2 on all machines we know of except the IBM 360 and derivatives. @item FLT_MANT_DIG -@standards{ISO, float.h} +@standards{C90, float.h} This is the number of base-@code{FLT_RADIX} digits in the floating point mantissa for the @code{float} data type. The following expression yields @code{1.0} (even though mathematically it should not) due to the @@ -1032,14 +1032,14 @@ where @code{radix} appears @code{FLT_MANT_DIG} times. @item DBL_MANT_DIG @itemx LDBL_MANT_DIG -@standardsx{DBL_MANT_DIG, ISO, float.h} +@standards{C90, float.h} This is the number of base-@code{FLT_RADIX} digits in the floating point mantissa for the data types @code{double} and @code{long double}, respectively. @comment Extra blank lines make it look better. @item FLT_DIG -@standards{ISO, float.h} +@standards{C90, float.h} This is the number of decimal digits of precision for the @code{float} data type. Technically, if @var{p} and @var{b} are the precision and @@ -1054,14 +1054,14 @@ The value of this macro is supposed to be at least @code{6}, to satisfy @item DBL_DIG @itemx LDBL_DIG -@standardsx{DBL_DIG, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_DIG}, but for the data types @code{double} and @code{long double}, respectively. The values of these macros are supposed to be at least @code{10}. @item FLT_MIN_EXP -@standards{ISO, float.h} +@standards{C90, float.h} This is the smallest possible exponent value for type @code{float}. More precisely, it is the minimum negative integer such that the value @code{FLT_RADIX} raised to this power minus 1 can be represented as a @@ -1069,25 +1069,25 @@ normalized floating point number of type @code{float}. @item DBL_MIN_EXP @itemx LDBL_MIN_EXP -@standardsx{DBL_MIN_EXP, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_MIN_EXP}, but for the data types @code{double} and @code{long double}, respectively. @item FLT_MIN_10_EXP -@standards{ISO, float.h} +@standards{C90, float.h} This is the minimum negative integer such that @code{10} raised to this power minus 1 can be represented as a normalized floating point number of type @code{float}. This is supposed to be @code{-37} or even less. @item DBL_MIN_10_EXP @itemx LDBL_MIN_10_EXP -@standardsx{DBL_MIN_10_EXP, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_MIN_10_EXP}, but for the data types @code{double} and @code{long double}, respectively. @item FLT_MAX_EXP -@standards{ISO, float.h} +@standards{C90, float.h} This is the largest possible exponent value for type @code{float}. More precisely, this is the maximum positive integer such that value @code{FLT_RADIX} raised to this power minus 1 can be represented as a @@ -1095,24 +1095,24 @@ floating point number of type @code{float}. @item DBL_MAX_EXP @itemx LDBL_MAX_EXP -@standardsx{DBL_MAX_EXP, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_MAX_EXP}, but for the data types @code{double} and @code{long double}, respectively. @item FLT_MAX_10_EXP -@standards{ISO, float.h} +@standards{C90, float.h} This is the maximum positive integer such that @code{10} raised to this power minus 1 can be represented as a normalized floating point number of type @code{float}. This is supposed to be at least @code{37}. @item DBL_MAX_10_EXP @itemx LDBL_MAX_10_EXP -@standardsx{DBL_MAX_10_EXP, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_MAX_10_EXP}, but for the data types @code{double} and @code{long double}, respectively. @item FLT_MAX -@standards{ISO, float.h} +@standards{C90, float.h} The value of this macro is the maximum number representable in type @code{float}. It is supposed to be at least @code{1E+37}. The value @@ -1122,14 +1122,14 @@ The smallest representable number is @code{- FLT_MAX}. @item DBL_MAX @itemx LDBL_MAX -@standardsx{DBL_MAX, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_MAX}, but for the data types @code{double} and @code{long double}, respectively. The type of the macro's value is the same as the type it describes. @item FLT_MIN -@standards{ISO, float.h} +@standards{C90, float.h} The value of this macro is the minimum normalized positive floating point number that is representable in type @code{float}. It is supposed @@ -1137,14 +1137,14 @@ to be no more than @code{1E-37}. @item DBL_MIN @itemx LDBL_MIN -@standardsx{DBL_MIN, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_MIN}, but for the data types @code{double} and @code{long double}, respectively. The type of the macro's value is the same as the type it describes. @item FLT_EPSILON -@standards{ISO, float.h} +@standards{C90, float.h} This is the difference between 1 and the smallest floating point number of type @code{float} that is greater than 1. It's supposed to @@ -1152,7 +1152,7 @@ be no greater than @code{1E-5}. @item DBL_EPSILON @itemx LDBL_EPSILON -@standardsx{DBL_EPSILON, ISO, float.h} +@standards{C90, float.h} These are similar to @code{FLT_EPSILON}, but for the data types @code{double} and @code{long double}, respectively. The type of the