platform_bionic/libm
Scott Turner c1f8dd9f0b Sometimes the compiler is very right! Found bug in bessel routines for float.
Original compiler error:

target arm C: libm <= bionic/libm/src/e_j0f.c
bionic/libm/src/e_j0f.c: In function 'j0f':
bionic/libm/src/e_j0f.c:66: warning: comparison between signed and unsigned integer expressions
bionic/libm/src/e_j0f.c: In function 'y0f':
bionic/libm/src/e_j0f.c:140: warning: comparison between signed and unsigned integer expressions
target arm C: libm <= bionic/libm/src/e_j1.c

It's subtle but ix is masked with 0x7f000000 so it can never ever have a value
greater than 0x80000000. So I switched to using the unmasked hx and added a
cast as a reward to the compiler for being right.

I checked the original routines that e_j0f.c was ported from (in e_j0.c) and
the double's don't use 0x80000000 so this issue didn't exist there.

Let that be a warning to those that just slap on casts to shut up the compiler,
sometimes it's sniffed out a bug for you. :-)

Similar fixes in the other functions.

Change-Id: I7a776e5d4721fc3a9e3bd89179b67e9af3a2ebfa
2010-05-07 15:02:36 -07:00
..
alpha Initial Contribution 2008-10-21 07:00:00 -07:00
amd64 Initial Contribution 2008-10-21 07:00:00 -07:00
arm Initial Contribution 2008-10-21 07:00:00 -07:00
bsdsrc Initial Contribution 2008-10-21 07:00:00 -07:00
i386 Initial Contribution 2008-10-21 07:00:00 -07:00
i387 Code drop from //branches/cupcake/...@124589 2008-12-17 18:03:48 -08:00
ia64 Initial Contribution 2008-10-21 07:00:00 -07:00
include Initial Contribution 2008-10-21 07:00:00 -07:00
man Initial Contribution 2008-10-21 07:00:00 -07:00
powerpc Initial Contribution 2008-10-21 07:00:00 -07:00
sh added and modified libm to support SuperH architecture 2009-08-31 16:25:42 +09:00
sparc64 Initial Contribution 2008-10-21 07:00:00 -07:00
src Sometimes the compiler is very right! Found bug in bessel routines for float. 2010-05-07 15:02:36 -07:00
Android.mk added and modified libm to support SuperH architecture 2009-08-31 16:25:42 +09:00
fpclassify.c Initial Contribution 2008-10-21 07:00:00 -07:00
isinf.c Initial Contribution 2008-10-21 07:00:00 -07:00
Makefile-orig Initial Contribution 2008-10-21 07:00:00 -07:00
MODULE_LICENSE_BSD_LIKE Initial Contribution 2008-10-21 07:00:00 -07:00
NOTICE Initial Contribution 2008-10-21 07:00:00 -07:00