hex_length = ACPI_MUL_2 (data_width); 
hex_length = (acpi_native_uint) ACPI_MUL_2 (data_width); 
acpi_ex_convert_to_ascii (	acpi_integer                    integer,	u16                             base,	u8                              *string,	u8                              data_width){	acpi_integer                    digit;	acpi_native_uint                i;	acpi_native_uint                j;	acpi_native_uint                k = 0;	acpi_native_uint                hex_length;	acpi_native_uint                decimal_length;	u32                             remainder;	u8                              supress_zeros;	ACPI_FUNCTION_ENTRY ();	switch (base) {	case 10:		/* Setup max length for the decimal number */		switch (data_width) {		case 1:			decimal_length = ACPI_MAX8_DECIMAL_DIGITS;			break;		case 4:			decimal_length = ACPI_MAX32_DECIMAL_DIGITS;			break;		case 8:		default:			decimal_length = ACPI_MAX64_DECIMAL_DIGITS;			break;		}		supress_zeros = TRUE;    /* No leading zeros */		remainder = 0;		for (i = decimal_length; i > 0; i--) {			/* Divide by nth factor of 10 */			digit = integer;			for (j = 0; j < i; j++) {				(void) acpi_ut_short_divide (digit, 10, &digit, &remainder);			}			/* Handle leading zeros */			if (remainder != 0) {				supress_zeros = FALSE;			}			if (!supress_zeros) {				string[k] = (u8) (ACPI_ASCII_ZERO + remainder);				k++;			}		}		break;	case 16:		/* hex_length: 2 ascii hex chars per data byte */		hex_length = ACPI_MUL_2 (data_width);		for (i = 0, j = (hex_length-1); i < hex_length; i++, j--) {			/* Get one hex digit, most significant digits first */			string[k] = (u8) acpi_ut_hex_to_ascii_char (integer, ACPI_MUL_4 (j));			k++;		}		break;	default:		return (0);	}	/*	 * Since leading zeros are supressed, we must check for the case where	 * the integer equals 0	 *	 * Finally, null terminate the string and return the length	 */	if (!k) {		string [0] = ACPI_ASCII_ZERO;		k = 1;	}	string [k] = 0;	return ((u32) k);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/73459f73e5d1602c59ebec114fc45185521353c1/exconvrt.c/buggy/drivers/acpi/executer/exconvrt.c