Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Andreas Krebs <krebs@qkal.sap-ag.de>
To: axp-list@redhat.com
Subject: Re: Alpha too slow?
Date: Wed, 03 Mar 1999 17:44:05 +0100	[thread overview]
Message-ID: <199903031644.RAA0000000871@storm.qkal.sap-ag.de> (raw)
In-Reply-To: Your message of Wed, 03 Mar 1999 17:07:10 +0100. <000001be658f$e4ccac60$cc000001@PC_VIGNAUD.xandmail.com>


> > one of the things i use my sx for is mpeg video encoding (only integer no
> > floating point). i use the stanford mpeg encoder with a modified motion
> > estimation routine for alpha and intel mmx.
> > my pc164SX/533 is about 2 to 3 times faster than my PII/333.
> >
> > the alpha version uses my own MVI assembler (if you have a pc
> > alpha use it :-) )
>             ^^
> Where is it??
on my disk :-), all you really need is the perr instruction it does almost
everything, so if somebody could tell me how to write inline assembler with
gcc/egcs and do unaligned access. does anybody know of a documentation for
writing alpha inline assembler with egcs???

under digital unix you need to following code in me.c:

#include <c_asm.h>
#define perr(v1, v2)    (asm("perr %a0, %a1, %v0", (v1), (v2)))
   
and in the inner loop of HPFastBME you replace (it occurs twice)

for(val=i=0;i<16;i++)
{
   data=(*(bptr++)-*(cptr++));
...
}

with
                        
{
  const unsigned __unaligned __int64      *p1;
  const unsigned __int64  *p2;

  p1 = (const unsigned __int64 *)bptr;
  p2 = (const unsigned __int64 *)cptr;

  i=16;
  val=0;
  while(i--)
  {
    val+=perr(p1[0], p2[0]);                /* Block 1 */
    val+=perr(p1[1], p2[1]);                /* Block 2 */

    ((const unsigned char *) p2) += rm->width;
    ((const unsigned char *) p1) += cm->width;

    if (val COMPARISON MV)
      break;
  }
}

> by the way, does egcs handle mvi instruction?
i don't know


-- 
_____________________________________________________________________________

                               Andreas S. Krebs

                CEC Karlsruhe, SAP AG, Andreas.Krebs@sap-ag.de
_____________________________________________________________________________


  reply	other threads:[~1999-03-03 16:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-03 15:55 Alpha too slow? Andreas Krebs
1999-03-03 16:07 ` Vignaud Jean-Baptiste
1999-03-03 16:44   ` Andreas Krebs [this message]
1999-03-03 21:51 ` Danilo Godec
1999-03-15  8:30   ` Vignaud Jean-Baptiste
1999-03-15  9:33     ` Andreas Krebs
1999-03-15 14:29       ` Memory mapped IO with Cypress CY82C693U (was RE: Alpha too slow?) Guenter Geiger
  -- strict thread matches above, loose matches on Subject: below --
1999-03-02 15:17 Alpha too slow? Danilo Godec
1999-03-02 16:23 ` Martin Ostermann
1999-03-02 16:41   ` Vignaud Jean-Baptiste
1999-03-02 16:55     ` Andrei A. Dergatchev
1999-03-03  8:13       ` Vignaud Jean-Baptiste
1999-03-03  9:08         ` Andrei A. Dergatchev
1999-03-02 17:11     ` norvierk
1999-03-02 17:58       ` Francois LAPERRUQUE
1999-03-02 19:05         ` Chris Albertson
1999-03-02 20:28           ` norvierk
1999-03-02 19:38         ` Daniel J. Frasnelli
1999-03-03  2:35         ` norvierk
1999-03-03 15:08           ` Francois LAPERRUQUE
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