icepole128v2/ref/icepole.c
uint64_t load64(const unsigned char * p, unsigned int len)
{
    uint64_t v = 0;
    unsigned int i;
    assert(len <= 8);
    for(i=0; i<len; ++i) {
        v = v ^ (((uint64_t)p[i]) << (8*i));
    }
    return v;
}
/* little endian load of len bytes into least significant bits of the resulting value */
little endian load of len bytes into least significant bits of the resulting value
little endian load of len bytes into least significant bits of the resulting value
uint64_t load64(const unsigned char * p, unsigned int len)
{
    uint64_t v = 0;
    unsigned int i;
    assert(len <= 8);
    for(i=0; i<len; ++i) {
        v = v ^ (((uint64_t)p[i]) << (8*i));
    }
    return v;
}
uint64_t load64 ( const unsigned char * p , unsigned int len ) { uint64_t v = 0 ; unsigned int i ; assert ( len <= 8 ) ; for ( i = 0 ; i < len ; ++ i ) { v = v ^ ( ( ( uint64_t ) p [ i ] ) << ( 8 * i ) ) ; } return v ; }
little endian load of len bytes into least significant bits of the resulting value
little endian load of len bytes into least significant bits of the resulting value