From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,753ed1318517d414,start X-Google-Attributes: gid111c93,public From: Subject: floor() broken on Multia Date: 2000/03/02 Message-ID: <89mono$fhj$1@hyperion.triode.net.au>#1/1 X-Deja-AN: 592408094 X-Complaints-To: paulb@triode.net.au X-Trace: hyperion.triode.net.au 952034872 15923 203.63.235.2 (2 Mar 2000 22:07:52 GMT) Organization: Triode Internet User-Agent: tin/pre-1.4-19990216 ("Styrofoam") (UNIX) (Linux/2.2.13 (i686)) NNTP-Posting-Date: 2 Mar 2000 22:07:52 GMT Newsgroups: comp.os.linux.alpha I'm using kernel 2.2.12 and GNU libc-2.1.3.so on a Multia and the floor() function never completes, it just hangs the process until you force it to die with a signal. Seems like in /usr/include/bits/mathinline.h is some assembler code: __MATH_INLINE double __floor (double __x) { if (__x != 0 && fabs (__x) < 9007199254740992.0) /* 1 << DBL_MANT_DIG */ { double __tmp1; __asm ( #ifdef _IEEE_FP_INEXACT "cvttq/svim %2,%1\n\t" #else "cvttq/svm %2,%1\n\t" #endif "cvtqt/m %1,%0\n\t" : "=f"(__x), "=&f"(__tmp1) : "f"(__x)); } return __x; } And those instructions don't seem to execute on the old Multia processor: cpu : Alpha cpu model : LCA4 cpu variation : 7 cpu revision : 0 cpu serial number : system type : Noname So does anyone have a floor() function that does work? Is it the kernel's responsibility to support these instructions or should the libc be adjusted to support a given processor (this is an off-the-shelf Debian libc, if I have to compile my own that's OK)? - Tel