From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129543 invoked by alias); 3 Sep 2018 07:42:56 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 129433 invoked by uid 9078); 3 Sep 2018 07:42:49 -0000 Date: Mon, 03 Sep 2018 07:42:00 -0000 Message-ID: <20180903074249.129431.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] math_config.h: Fix signed overflow warning for 16-bit targets X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Beniston X-Git-Refname: refs/heads/master X-Git-Oldrev: fcc1e7039f92509ccca895432844dc26a2366671 X-Git-Newrev: 86c31ae47b1a17e8d79968af2874b2a89b4326c5 X-SW-Source: 2018-q3/txt/msg00111.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=86c31ae47b1a17e8d79968af2874b2a89b4326c5 commit 86c31ae47b1a17e8d79968af2874b2a89b4326c5 Author: Jon Beniston Date: Fri Aug 31 23:10:00 2018 +0100 math_config.h: Fix signed overflow warning for 16-bit targets Diff: --- newlib/libm/common/math_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libm/common/math_config.h b/newlib/libm/common/math_config.h index f28c52b..dcbc61a 100644 --- a/newlib/libm/common/math_config.h +++ b/newlib/libm/common/math_config.h @@ -155,7 +155,7 @@ issignalingf_inline (float x) uint32_t ix = asuint (x); if (!IEEE_754_2008_SNAN) return (ix & 0x7fc00000) == 0x7fc00000; - return 2 * (ix ^ 0x00400000) > 2u * 0x7fc00000; + return 2 * (ix ^ 0x00400000) > 0xFF800000u; } static inline int