From ea38f4d89c9698895b1cf53a5946429dc1d8bbaa Mon Sep 17 00:00:00 2001 From: Sergey Cherkashin <4erkashin@list.ru> Date: Tue, 3 Oct 2017 15:26:34 +0300 Subject: math: add exception handling functionality According to standards SVID and SYSV. Modified lgamma calling in case when 'signgam' variable should not be used. Signed-off-by: Waldemar Brodkorb --- libm/math_private.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libm/math_private.h') diff --git a/libm/math_private.h b/libm/math_private.h index 620ce9a44..13edda944 100644 --- a/libm/math_private.h +++ b/libm/math_private.h @@ -184,6 +184,16 @@ extern double __kernel_sin (double,double,int) attribute_hidden; extern double __kernel_cos (double,double) attribute_hidden; extern double __kernel_tan (double,double,int) attribute_hidden; extern int __kernel_rem_pio2 (double*,double*,int,int,int,const int*) attribute_hidden; +extern double __kernel_standard(double x, double y, int type) attribute_hidden; +extern float __kernel_standard_f (float, float, int) attribute_hidden; +#ifndef __NO_LONG_DOUBLE_MATH +extern long double __kernel_standard_l (long double, long double, int) attribute_hidden; +#endif +/* wrappers functions for internal use */ +extern float __lgammaf_r (float, int*); +extern double __lgamma_r (double, int*); +extern long double __lgammal_r(long double, int*); +extern double __ieee754_tgamma(double); /* * math_opt_barrier(x): safely load x, even if it was manipulated -- cgit v1.2.3