 // 20-bit routines
 // - the 20 bits of data are left-justified in 3 bytes of storage but right-aligned for input/output predictor buffers
 
-void mix20( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres )
+void mix20(uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres)
 {
 	int32_t		l, r;
 	uint8_t *	ip = in;
 	int32_t			j;
 
-	if ( mixres != 0 )
+	if (mixres != 0)
 	{
 		/* matrixed stereo */
 		int32_t		mod = 1 << mixbits;
 		int32_t		m2 = mod - mixres;
 
-		for ( j = 0; j < numSamples; j++ )
-		{
-			l = (int32_t)( ((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE] );
+		for (j = 0; j < numSamples; j++)
+		{
+			l = (int32_t)(((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE]);
 			l = (l << 8) >> 12;
 			ip += 3;
 
-			r = (int32_t)( ((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE] );
+			r = (int32_t)(((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE]);
 			r = (r << 8) >> 12;
 			ip += (stride - 1) * 3;
 
 			u[j] = (mixres * l + m2 * r) >> mixbits;
 			v[j] = l - r;
-		} 
+		}
 	}
 	else
 	{
 		/* Conventional separated stereo. */
-		for ( j = 0; j < numSamples; j++ )
-		{
-			l = (int32_t)( ((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE] );
+		for (j = 0; j < numSamples; j++)
+		{
+			l = (int32_t)(((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE]);
 			u[j] = (l << 8) >> 12;
 			ip += 3;
 
-			r = (int32_t)( ((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE] );
+			r = (int32_t)(((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE]);
 			v[j] = (r << 8) >> 12;
 			ip += (stride - 1) * 3;
 		}

	}
	else
	{
		if ( bytesShifted == 0 )
		{
			/* de-interleaving w/o shift */
			for ( j = 0; j < numSamples; j++ )
			{
				u[j] = ip[0];
				v[j] = ip[1];

		}
		else
		{
			for (j = 0; j < numSamples; j++)
			{
				l = (int32_t)(((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE]);
				l = (l << 8) >> 8;
				ip += 3;

				r = (int32_t)(((uint32_t)ip[HBYTE] << 16) | ((uint32_t)ip[MBYTE] << 8) | (uint32_t)ip[LBYTE]);
				r = (r << 8) >> 8;
				ip += (stride - 1) * 3;

