Changeset 11 for trunk/src/sh_tiger0.c


Ignore:
Timestamp:
Jan 2, 2006, 12:03:25 AM (19 years ago)
Author:
rainer
Message:

Minor optimisations for server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_tiger0.c

    r8 r11  
    422422int md5Reset(register md5Param* p)
    423423{
     424        unsigned int i;
    424425        memcpy(p->h, md5hinit, 16);
    425         memset(p->data, 0x00, 64);
     426       
     427        for (i = 0; i < 16; i += 8)
     428          {
     429            p->data[i]   = 0x00;
     430            p->data[i+1] = 0x00;
     431            p->data[i+2] = 0x00;
     432            p->data[i+3] = 0x00;
     433            p->data[i+4] = 0x00;
     434            p->data[i+5] = 0x00;
     435            p->data[i+6] = 0x00;
     436            p->data[i+7] = 0x00;
     437          }
     438       
     439        /* memset(p->data, 0x00, 64); */
    426440        p->offset = (uint8) 0;
    427441        p->nblocks = 0;
     
    15271541  SL_ENTER(_("sh_tiger_hash_uint32"));
    15281542
    1529   memset(out, 0, 6 * sizeof(UINT32));
     1543  out[0] = 0; out[1] = 0; out[2] = 0;
     1544  out[3] = 0; out[4] = 0; out[5] = 0;
    15301545
    15311546  res = sh_tiger_hash_val (filename,  what,  Length, 0);
Note: See TracChangeset for help on using the changeset viewer.