[perl #30737] assuming IEEE?

2004-07-19 Thread via RT
# New Ticket Created by Nicholas Clark # Please include the string: [perl #30737] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30737 in platform.c I see: int Parrot_signbit(double x) { union { double

Re: [perl #30737] assuming IEEE?

2004-07-19 Thread Andy Dougherty
On Mon, 19 Jul 2004, Nicholas Clark wrote: int Parrot_signbit(double x) { union { double d; int i[2]; } u; u.d = x; #if PARROT_BIGENDIAN return u.i[0] 0; #else return u.i[1] 0; #endif } This is buggy. Even on an IEEE platform (which this seems to be

Re: [perl #30737] assuming IEEE?

2004-07-19 Thread Leopold Toetsch
Nicholas Clark [EMAIL PROTECTED] wrote: in platform.c I see: int Parrot_signbit(double x) This is buggy. This is generated platform code and overridable in platform/*/math.c Better code for _signbit is of course welcome. Nicholas Clark leo