From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,753ed1318517d414 X-Google-Attributes: gid111c93,public From: Subject: Re: floor() broken on Multia Date: 2000/03/03 Message-ID: <89npn4$ddt$1@hyperion.triode.net.au>#1/1 X-Deja-AN: 592569896 References: <89mono$fhj$1@hyperion.triode.net.au> <38BF6352.238799B7@kc.rr.com> X-Complaints-To: paulb@triode.net.au X-Trace: hyperion.triode.net.au 952068644 13757 203.63.235.2 (3 Mar 2000 07:30:44 GMT) Organization: Triode Internet User-Agent: tin/pre-1.4-19990216 ("Styrofoam") (UNIX) (Linux/2.2.13 (i686)) NNTP-Posting-Date: 3 Mar 2000 07:30:44 GMT Newsgroups: comp.os.linux.alpha Tony Hammitt wrote: > This isn't pretty, but it works: > y=floor(x); is equivalent to y=(double)(int)((x<0)?x-1:x); OK, thanks for that it seems to work without hanging since it doesn't use the troublesome instruction. Worst case I can patch the libc source and recompile everything (yuck). This is especially annoying since I found that the X11 server contains the same bad instructions and recompiling that is a big undertaking on a Multia. I'm trying a newer kernel... - Tel