external/libmodplug-0.8.9.0/src/load_pat.cpp
// convert 8 bit data to 16 bit!
// We do the conversion in reverse so that the data we're converting isn't overwritten
// by the result.
convert 8 bit data to 16 bit.
We do the conversion in reverse so that the data we're converting isn't overwritten
by the result.
convert 8 bit data to 16 bit . We do the conversion in reverse so that the data we ' re converting isn ' t overwritten by the result .
static void	pat_blowup_to16bit(short int *dest, int cbcount) {
	char *s;
	short int *d;
	int t;
	s  = (char *)dest;
	d  = dest;
	s += cbcount;
	d += cbcount;
	for(t=0; t<cbcount; t++)
	{
		s--;
		d--;
		*d = (*s) << 8;
	}
}
static void pat_blowup_to16bit ( short int * dest , int cbcount ) { char * s ; short int * d ; int t ; s = ( char * ) dest ; d = dest ; s += cbcount ; d += cbcount ; for ( t = 0 ; t < cbcount ; t ++ ) { s -- ; d -- ; * d = ( * s ) << 8 ; } }
convert 8 bit data to 16 bit!
convert 8 bit data to 16 bit!