From 4433df3b2015b3b1acd9d24bf7169c010fb51a05 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 10 May 2022 14:47:09 -0700 Subject: [PATCH 2/2] * src/floatfns.c: Update comment. --- src/floatfns.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/floatfns.c b/src/floatfns.c index f2b3b13acd..293184c70f 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -29,14 +29,20 @@ Copyright (C) 1988, 1993-1994, 1999, 2001-2022 Free Software Foundation, C99 and C11 require the following math.h functions in addition to the C89 functions. Of these, Emacs currently exports only the - starred ones to Lisp, since we haven't found a use for the others: - acosh, atanh, cbrt, *copysign, erf, erfc, exp2, expm1, fdim, fma, - fmax, fmin, fpclassify, hypot, ilogb, isfinite, isgreater, - isgreaterequal, isinf, isless, islessequal, islessgreater, *isnan, - isnormal, isunordered, lgamma, log1p, *log2 [via (log X 2)], *logb - (approximately), lrint/llrint, lround/llround, nan, nearbyint, - nextafter, nexttoward, remainder, remquo, *rint, round, scalbln, - scalbn, signbit, tgamma, *trunc. + starred ones to Lisp, since we haven't found a use for the others. + Also, it uses the ones marked "+" internally: + acosh, atanh, cbrt, copysign (implemented by signbit), erf, erfc, + exp2, expm1, fdim, fma, fmax, fmin, fpclassify, hypot, +ilogb, + isfinite, isgreater, isgreaterequal, isinf, isless, islessequal, + islessgreater, *isnan, isnormal, isunordered, lgamma, log1p, *log2 + [via (log X 2)], logb (approximately; implemented by frexp), + +lrint/llrint, +lround/llround, nan, nearbyint, nextafter, + nexttoward, remainder, remquo, *rint, round, scalbln, +scalbn, + +signbit, tgamma, *trunc. + + The C standard also requires functions for float and long double + that are not listed above. Of these functions, Emacs uses only the + following internally: fabsf, powf, sprintf. */ #include -- 2.35.3