From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21801 invoked from network); 3 Mar 1999 16:48:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Mar 1999 16:48:57 -0000 Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [194.39.131.165]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA31874 for ; Wed, 3 Mar 1999 11:45:16 -0500 Received: from sap-ag.de ([194.39.131.3]) by smtpde01.sap-ag.de (out) with ESMTP id RAA29744 for ; Wed, 3 Mar 1999 17:44:15 +0100 (MEZ) Received: from sharon.qkal.sap-ag.de (sharon.qkal.sap-ag.de [10.55.144.3]) by sap-ag.de (8.8.8/8.8.8) with SMTP id RAA01430 for ; Wed, 3 Mar 1999 17:42:32 +0100 (MET) Received: from storm.qkal.sap-ag.de by sharon.qkal.sap-ag.de (5.65v4.0/1.1.19.2/20Jan99-0715PM) id AA03107; Wed, 3 Mar 1999 17:44:05 +0100 From: Andreas Krebs Received: from localhost by storm.qkal.sap-ag.de (8.8.8/1.1.19.2/15Jan99-1021AM) id RAA0000000871; Wed, 3 Mar 1999 17:44:05 +0100 (MET) Message-Id: <199903031644.RAA0000000871@storm.qkal.sap-ag.de> X-Mailer: exmh version 2.0.2 2/24/98 To: axp-list@redhat.com Subject: Re: Alpha too slow? In-Reply-To: Your message of Wed, 03 Mar 1999 17:07:10 +0100. <000001be658f$e4ccac60$cc000001@PC_VIGNAUD.xandmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 03 Mar 1999 17:44:05 +0100 X-Mts: smtp > > 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 #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 _____________________________________________________________________________