// 20250302 djb: port to -Wc++-compat
#include "crypto_decode.h"
#include "crypto_uint32.h"

void crypto_decode(void *v,const unsigned char *s)
{
  crypto_uint32 *x = (crypto_uint32 *) v;
  int i;

  for (i = 0;i < {P};++i) {
    crypto_uint32 u0 = s[0];
    crypto_uint32 u1 = s[1];
    crypto_uint32 u2 = s[2];
    crypto_uint32 u3 = s[3];
    u1 <<= 8;
    u2 <<= 16;
    u3 <<= 24;
    *x = u0 | u1 | u2 | u3;
    x += 1;
    s += 4;
  }
}
