From 572676160d5639edc0ecb663147bd291841458d1 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 2 Apr 2013 13:51:02 +0200 Subject: New macro named issignaling to check for a signaling NaN (sNaN). It is based on draft TS 18661 and currently enabled as a GNU extension. --- manual/arith.texi | 8 ++++++++ manual/libm-err-tab.pl | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/arith.texi b/manual/arith.texi index d060ff9..ce8844e 100644 --- a/manual/arith.texi +++ b/manual/arith.texi @@ -387,6 +387,14 @@ to @end smallexample @end deftypefn +@comment math.h +@comment GNU +@deftypefn {Macro} int issignaling (@emph{float-type} @var{x}) +This macro returns a nonzero value if @var{x} is a signaling NaN +(sNaN). It is based on draft TS 18661 and currently enabled as a GNU +extension. +@end deftypefn + Another set of floating-point classification functions was provided by BSD. @Theglibc{} also supports these functions; however, we recommend that you use the ISO C99 macros in new code. Those are standard diff --git a/manual/libm-err-tab.pl b/manual/libm-err-tab.pl index 5aa2603..1564669 100755 --- a/manual/libm-err-tab.pl +++ b/manual/libm-err-tab.pl @@ -77,7 +77,9 @@ use vars qw (%results @all_floats %suffices @all_functions); "remainder", "remquo", "rint", "round", "scalb", "scalbn", "scalbln", "sin", "sincos", "sinh", "sqrt", "tan", "tanh", "tgamma", "trunc", "y0", "y1", "yn" ); -# "fpclassify", "isfinite", "isnormal", "signbit" are not tabulated +# fpclassify, isnormal, isfinite, isinf, isnan, issignaling, signbit, +# isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered +# are not tabulated. if ($#ARGV == 0) { $sources = $ARGV[0]; -- cgit v1.1