exutils.c (2c4cdf5950b1a7a9d731c03c56e2cea3bd8ca7b7) | exutils.c (fd1af7126fb62688cfcf4b563c73b2909ac30f74) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: exutils - interpreter/scanner utilities 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2013, Intel Corp. --- 326 unchanged lines hidden (view full) --- 335 u32 num_digits; 336 u64 current_value; 337 338 ACPI_FUNCTION_TRACE(ex_digits_needed); 339 340 /* u64 is unsigned, so we don't worry about a '-' prefix */ 341 342 if (value == 0) { | 1/****************************************************************************** 2 * 3 * Module Name: exutils - interpreter/scanner utilities 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2013, Intel Corp. --- 326 unchanged lines hidden (view full) --- 335 u32 num_digits; 336 u64 current_value; 337 338 ACPI_FUNCTION_TRACE(ex_digits_needed); 339 340 /* u64 is unsigned, so we don't worry about a '-' prefix */ 341 342 if (value == 0) { |
343 return_VALUE(1); | 343 return_UINT32(1); |
344 } 345 346 current_value = value; 347 num_digits = 0; 348 349 /* Count the digits in the requested base */ 350 351 while (current_value) { 352 (void)acpi_ut_short_divide(current_value, base, ¤t_value, 353 NULL); 354 num_digits++; 355 } 356 | 344 } 345 346 current_value = value; 347 num_digits = 0; 348 349 /* Count the digits in the requested base */ 350 351 while (current_value) { 352 (void)acpi_ut_short_divide(current_value, base, ¤t_value, 353 NULL); 354 num_digits++; 355 } 356 |
357 return_VALUE(num_digits); | 357 return_UINT32(num_digits); |
358} 359 360/******************************************************************************* 361 * 362 * FUNCTION: acpi_ex_eisa_id_to_string 363 * 364 * PARAMETERS: compressed_id - EISAID to be converted 365 * out_string - Where to put the converted string (8 bytes) --- 101 unchanged lines hidden --- | 358} 359 360/******************************************************************************* 361 * 362 * FUNCTION: acpi_ex_eisa_id_to_string 363 * 364 * PARAMETERS: compressed_id - EISAID to be converted 365 * out_string - Where to put the converted string (8 bytes) --- 101 unchanged lines hidden --- |