All pastes #914331 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-22 20:21 UTC
rendered paste body
void convert_to_uint32(unsigned char* input, int size, Xuint32* output){

	int i,j;
	Xuint32 result = 0;
	for(i = 0; i < size/8; i++){
		for( j = 0 ; j < 8; j++){
			// Choose between using pow or just left shifts only
			//result += get_multiplier(input[8*i+j])*pow(16,(7-j));
			result += get_multiplier(input[8*i+j])*(1<<(4*(7-j)));
		}
	output[i] = result;
	result = 0;
	}
}