OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr42221.c] - Rev 826

Compare with Previous | Blame | View Log

/* { dg-options "-Os -fgraphite-identity" } */
 
static void b2w(unsigned int *out, const unsigned char *in, unsigned int len)
{
  const unsigned char *bpend = in + len;
  for (; in != bpend; in += 4, ++out)
  {
    *out = (unsigned int) (in[0] ) |
          (unsigned int) (in[3] << 24);
  }
}
static void md4step(unsigned int state[4], const unsigned char *data)
{
  unsigned int A, X[16];
  b2w(X, data, 64);
  state[0] += A;
}
void md4sum(void)
{
  unsigned char final[128];
  unsigned int state[4];
  md4step(state, final);
  md4step(state, final + 64);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.