Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: <telford@xenon.triode.net.au>
Subject: Re: floor() broken on Multia
Date: 2000/03/03	[thread overview]
Message-ID: <89nbt4$t74$1@hyperion.triode.net.au> (raw)
In-Reply-To: 89mono$fhj$1@hyperion.triode.net.au

following up myself:

> __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;
> }

XF86_TGA also hangs from time to time, when it happens the CPU usage goes up
a lot (so there is an infinite loop somewhere) and when I come in there with 
gdb, then do a disassemble around the program counter, hmm what do I see there:

cvttq/svm <floating point regs>
cvtqt/m <floating point regs>


So it seems that the same hanging thing is happening to XF86_TGA (and I'll
guess it is calling floor() somewhere) and now my Multia doesn't give me
stable X11 anymore. I'm pretty sure this used to work, so something fairly
recent has introduced this.

	- Tel




      parent reply	other threads:[~2000-03-03  5:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Tony Hammitt
2000-03-03  5:00   ` telford
2000-03-03  5:00     ` Tony Hammitt
2000-03-06  5:00       ` Ryan C. Price
2000-03-03  5:00 ` telford [this message]
read-only archive

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