Re: libm: avoid left-shifting a negative integer

2015-08-20 Thread Mark Kettenis
> Date: Wed, 19 Aug 2015 21:25:35 +0200 > From: Christian Weisgerber > > I saw this drifting by on FreeBSD (from Dimitry Andric): > > In libm's exp2(3), avoid left-shifting a negative integer, which is > undefined. Replace it with the intended value, in a defined way. > > OK? Don't bother

libm: avoid left-shifting a negative integer

2015-08-19 Thread Christian Weisgerber
I saw this drifting by on FreeBSD (from Dimitry Andric): In libm's exp2(3), avoid left-shifting a negative integer, which is undefined. Replace it with the intended value, in a defined way. OK? Don't bother? Index: src/s_exp2.c ==