This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #16824] Fix failing y1 due to too large ulps in downward/upward rounding mode.
- From: Andreas Schwab <schwab at suse dot de>
- To: Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 17 Apr 2014 16:30:26 +0200
- Subject: Re: [PATCH][BZ #16824] Fix failing y1 due to too large ulps in downward/upward rounding mode.
- Authentication-results: sourceware.org; auth=none
- References: <li8la8$llb$1 at ger dot gmane dot org> <5347E50F dot 7000906 at linux dot vnet dot ibm dot com> <lig7bv$9gj$1 at ger dot gmane dot org>
Stefan Liebler <stli@linux.vnet.ibm.com> writes:
> diff --git a/sysdeps/ieee754/ldbl-128/e_j1l.c b/sysdeps/ieee754/ldbl-128/e_j1l.c
> index 70a1c86..1264c95 100644
> --- a/sysdeps/ieee754/ldbl-128/e_j1l.c
> +++ b/sysdeps/ieee754/ldbl-128/e_j1l.c
> @@ -856,6 +856,7 @@ __ieee754_y1l (long double x)
> if (xx <= 2.0L)
> {
> /* 0 <= x <= 2 */
> + SET_RESTORE_ROUNDL (FE_TONEAREST);
In file included from ../sysdeps/ieee754/flt-32/math_private.h:3:0,
from ../sysdeps/powerpc/fpu/math_private.h:26,
from ../sysdeps/ieee754/ldbl-128/e_j1l.c:99,
from ../sysdeps/ieee754/ldbl-128ibm/e_j1l.c:2:
../sysdeps/ieee754/ldbl-128/e_j1l.c: In function '__ieee754_y1l':
../sysdeps/generic/math_private.h:579:10: error: cleanup argument not a function
struct rm_ctx ctx __attribute__((cleanup(CLEANUPFUNC ## _ctx))); \
^
../sysdeps/generic/math_private.h:594:3: note: in expansion of macro 'SET_RESTORE_ROUND_GENERIC'
SET_RESTORE_ROUND_GENERIC (RM, libc_feholdsetroundl, libc_feresetroundl)
^
../sysdeps/ieee754/ldbl-128/e_j1l.c:859:7: note: in expansion of macro 'SET_RESTORE_ROUNDL'
SET_RESTORE_ROUNDL (FE_TONEAREST);
^
../sysdeps/generic/math_private.h:579:10: warning: implicit declaration of function 'libc_feholdsetroundl_ctx' [-Wimplicit-function-declaration]
struct rm_ctx ctx __attribute__((cleanup(CLEANUPFUNC ## _ctx))); \
^
../sysdeps/generic/math_private.h:594:3: note: in expansion of macro 'SET_RESTORE_ROUND_GENERIC'
SET_RESTORE_ROUND_GENERIC (RM, libc_feholdsetroundl, libc_feresetroundl)
^
../sysdeps/ieee754/ldbl-128/e_j1l.c:859:7: note: in expansion of macro 'SET_RESTORE_ROUNDL'
SET_RESTORE_ROUNDL (FE_TONEAREST);
^
/home/abuild/rpmbuild/BUILD/glibc-2.19.90/cc-base/sysd-rules:2775: recipe for target '/home/abuild/rpmbuild/BUILD/glibc-2.19.90/cc-base/math/e_j1l.o' failed
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."