about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rwxr-xr-xmanual/libm-err-tab.pl2
-rw-r--r--manual/math.texi31
2 files changed, 31 insertions, 2 deletions
diff --git a/manual/libm-err-tab.pl b/manual/libm-err-tab.pl
index 6d0bffc372..0e83853949 100755
--- a/manual/libm-err-tab.pl
+++ b/manual/libm-err-tab.pl
@@ -58,7 +58,7 @@ use vars qw (%results @all_floats %suffices @all_functions);
     "creal", "csin", "csinh", "csqrt", "ctan", "ctanh", "erf", "erfc",
     "exp", "exp10", "exp2", "expm1", "fabs", "fdim", "floor", "fma",
     "fmax", "fmin", "fmod", "frexp", "gamma", "hypot",
-    "ilogb", "j0", "j1", "jn", "lgamma", "lrint",
+    "ilogb", "j0", "j1", "jn", "lgamma", "llogb", "lrint",
     "llrint", "log", "log10", "log1p", "log2", "logb", "lround",
     "llround", "modf", "nearbyint", "nextafter", "nextdown", "nexttoward",
     "nextup", "pow", "remainder", "remquo", "rint", "round", "scalb",
diff --git a/manual/math.texi b/manual/math.texi
index b4bb32345e..5ad8732eca 100644
--- a/manual/math.texi
+++ b/manual/math.texi
@@ -584,9 +584,20 @@ negative), @code{logb} returns @math{@infinity{}}.  If @var{x} is zero,
 @comment math.h
 @comment ISO
 @deftypefunx int ilogbl (long double @var{x})
+@comment math.h
+@comment ISO
+@deftypefunx {long int} llogb (double @var{x})
+@comment math.h
+@comment ISO
+@deftypefunx {long int} llogbf (float @var{x})
+@comment math.h
+@comment ISO
+@deftypefunx {long int} llogbl (long double @var{x})
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 These functions are equivalent to the corresponding @code{logb}
-functions except that they return signed integer values.
+functions except that they return signed integer values.  The
+@code{ilogb} functions are from ISO C99; the @code{llogb} functions
+are from TS 18661-1:2014.
 @end deftypefun
 
 @noindent
@@ -605,6 +616,15 @@ This macro is defined in @w{ISO C99}.
 
 @comment math.h
 @comment ISO
+@deftypevr Macro {long int} FP_LLOGB0
+@code{llogb} returns this value if its argument is @code{0}.  The
+numeric value is either @code{LONG_MIN} or @code{-LONG_MAX}.
+
+This macro is defined in TS 18661-1:2014.
+@end deftypevr
+
+@comment math.h
+@comment ISO
 @deftypevr Macro int FP_ILOGBNAN
 @code{ilogb} returns this value if its argument is @code{NaN}.  The
 numeric value is either @code{INT_MIN} or @code{INT_MAX}.
@@ -612,6 +632,15 @@ numeric value is either @code{INT_MIN} or @code{INT_MAX}.
 This macro is defined in @w{ISO C99}.
 @end deftypevr
 
+@comment math.h
+@comment ISO
+@deftypevr Macro {long int} FP_LLOGBNAN
+@code{llogb} returns this value if its argument is @code{NaN}.  The
+numeric value is either @code{LONG_MIN} or @code{LONG_MAX}.
+
+This macro is defined in TS 18661-1:2014.
+@end deftypevr
+
 These values are system specific.  They might even be the same.  The
 proper way to test the result of @code{ilogb} is as follows: