Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* floor() broken on Multia
@ 2000-03-02  5:00 telford
  2000-03-03  5:00 ` Ryan C. Price
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: telford @ 2000-03-02  5:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-03-06  5:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-02  5:00 floor() broken on Multia telford
2000-03-03  5:00 ` Ryan C. Price
2000-03-03  5:00   ` Michal Jaegermann
2000-03-06  5:00     ` telford
2000-03-03  5:00 ` telford
2000-03-03  5:00 ` Tony Hammitt
2000-03-03  5:00   ` telford
2000-03-03  5:00     ` Tony Hammitt
2000-03-06  5:00       ` Ryan C. Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox