Date: Wed, 6 Aug 2014 17:01:53 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: freebsd-standards@freebsd.org Subject: patch for math.h Message-ID: <20140807000129.GA3800@troutmask.apl.washington.edu>
next in thread | raw e-mail | index | archive | help
After David Chisnall commit msun/src/imprecise.c, he exposed lgammal, powl, and tgammal in libm. As these functions are listed in n1256.pdf, is the following patch acceptable? See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191754 -- Steve Index: src/math.h =================================================================== --- src/math.h (revision 268982) +++ src/math.h (working copy) @@ -465,6 +465,7 @@ long double hypotl(long double, long double); int ilogbl(long double) __pure2; long double ldexpl(long double, int); +long double lgammal(long double); long long llrintl(long double); long long llroundl(long double); long double log10l(long double); @@ -481,6 +482,7 @@ double nexttoward(double, long double); float nexttowardf(float, long double); long double nexttowardl(long double, long double); +long double powl(long double, long double); long double remainderl(long double, long double); long double remquol(long double, long double, int *); long double rintl(long double); @@ -492,6 +494,7 @@ long double sqrtl(long double); long double tanhl(long double); long double tanl(long double); +long double tgammal(long double); long double truncl(long double); #endif /* __ISO_C_VISIBLE >= 1999 */ @@ -498,25 +501,3 @@ __END_DECLS #endif /* !_MATH_H_ */ - -/* separate header for cmath */ -#ifndef _MATH_EXTRA_H_ -#if __ISO_C_VISIBLE >= 1999 -#if _DECLARE_C99_LDBL_MATH - -#define _MATH_EXTRA_H_ - -/* - * extra long double versions of math functions for C99 and cmath - */ -__BEGIN_DECLS - -long double lgammal(long double); -long double powl(long double, long double); -long double tgammal(long double); - -__END_DECLS - -#endif /* !_DECLARE_C99_LDBL_MATH */ -#endif /* __ISO_C_VISIBLE >= 1999 */ -#endif /* !_MATH_EXTRA_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140807000129.GA3800>