Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* some odd problems with MD5 on Alpha
@ 1999-06-26  7:28 designer seven
  1999-06-27  5:33 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: designer seven @ 1999-06-26  7:28 UTC (permalink / raw)
  To: Alpha/Linux Mailing List

Hello,

I'm hoping someone with better programming skills can
figure this one out. I downloaded the reference code
from RSA for MD5. After building it with egcs, I
noticed that the resulting hashes were wrong. (in
comparison to the results of md5sum)

I took the same code and built it on an UltraSPARC at
work, and the resulting hash was correct. From that,
I'm guessing that it might have something to do with
the Alpha....??

Can someone take a look at the ref code for MD5 from
ftp.rsa.com ??? 

By the way, in time tests, I gained 5-fold increase in
speed by including -mcpu=ev56 -Wa,-m21164a. What is so
special about these switches and the MD5 algorithm
that would make such a drastic performance increase?

Thanks for any knowledge anyone can share...
D.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

* Re: some odd problems with MD5 on Alpha
  1999-06-26  7:28 some odd problems with MD5 on Alpha designer seven
@ 1999-06-27  5:33 ` Richard Henderson
  1999-06-27 19:38   ` Quant-X Alpha Linux Support
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 1999-06-27  5:33 UTC (permalink / raw)
  To: axp-list

On Sat, Jun 26, 1999 at 12:28:44AM -0700, designer seven wrote:
> By the way, in time tests, I gained 5-fold increase in
> speed by including -mcpu=ev56 -Wa,-m21164a. What is so
> special about these switches and the MD5 algorithm
> that would make such a drastic performance increase?

Byte load/store instructions.


r~


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

* Re: some odd problems with MD5 on Alpha
  1999-06-27  5:33 ` Richard Henderson
@ 1999-06-27 19:38   ` Quant-X Alpha Linux Support
  0 siblings, 0 replies; 3+ messages in thread
From: Quant-X Alpha Linux Support @ 1999-06-27 19:38 UTC (permalink / raw)
  To: axp-list, Richard Henderson

On Sat, Jun 26, 1999 at 10:33:21PM -0700, Richard Henderson wrote:
> On Sat, Jun 26, 1999 at 12:28:44AM -0700, designer seven wrote:
> > By the way, in time tests, I gained 5-fold increase in
> > speed by including -mcpu=ev56 -Wa,-m21164a. What is so
> > special about these switches and the MD5 algorithm
> > that would make such a drastic performance increase?
> 
> Byte load/store instructions.

Hmm yes, especially byte store is much faster. 

Richard, I'm not saying that I found a bug in old egcs-1.0.3 release;
but if I replace "-mcpu=ev5" by "-mcpu=ev56" when compiling nagratv-2.10
I get a "different" runtime behavior. Here the working compile-options
and the code that breaks (the outcommented for loop breaks): 

CFLAGS= -Wall -O6 -funroll-all-loops -fomit-frame-pointer -mcpu=ev5 \
        -Wa,-m21164a

----------------------------------------------------------------------
void ClearScreen(DispInfo *d)
{
  int i,s;
  unsigned char *base;

  s=2*d->width*d->height;
  base=d->base;
#if 0
  for(i=0;i<s;i+=2) *(short *)(base+i)=0;
#else
  memset(base, 0, s);
#endif
}
----------------------------------------------------------------------

-- 
  ciao -
    Stefan Traby
    Quant-X Alpha Linux Support

   Quant-X Service &                         Ph:  (+43) 4212 90555-0
   Consulting Ges.m.b.H.                     Fax: (+43) 4212 90555-555
   http://www.quant-x.com                    Email: support@quant-x.com


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

end of thread, other threads:[~1999-06-27 20:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-26  7:28 some odd problems with MD5 on Alpha designer seven
1999-06-27  5:33 ` Richard Henderson
1999-06-27 19:38   ` Quant-X Alpha Linux Support

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