From 0b57daebab36f59af1d2a02616ee636a7b13ba12 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 18 Jan 2013 14:16:25 +0530 Subject: Fix application of the exception mask Fixes BZ #14496. --- sysdeps/i386/fpu/fenv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/i386/fpu') diff --git a/sysdeps/i386/fpu/fenv_private.h b/sysdeps/i386/fpu/fenv_private.h index 03f4c97a9c..1f8336cf96 100644 --- a/sysdeps/i386/fpu/fenv_private.h +++ b/sysdeps/i386/fpu/fenv_private.h @@ -176,7 +176,7 @@ libc_feupdateenv_test_sse (fenv_t *e, int ex) /* Raise SIGFPE for any new exceptions since the hold. Expect that the normal environment has all exceptions masked. */ - if (__builtin_expect ((old_mxcsr >> 7) & cur_ex, 0)) + if (__glibc_unlikely (~(old_mxcsr >> 7) & cur_ex)) __feraiseexcept (cur_ex); /* Test for exceptions raised since the hold. */ -- cgit 1.4.1