/* Converts a little endian byte stream into a 16-bit integer (short)  */
short inv_little8_to_int16(const unsigned char *little8)
/* Converts a little endian byte stream into a 16-bit integer (short)  */
short inv_little8_to_int16(const unsigned char *little8)
{
    short x;
    x = ((short)little8[1] << 8) | ((short)little8[0]);
    return x;
}