\r
#include "Setup.h"\r
\r
-/**\r
- VSPrint worker function that prints a Value as a decimal number in Buffer.\r
-\r
- @param Buffer Location to place ascii decimal number string of Value.\r
- @param Flags Flags to use in printing decimal string, see file header for\r
- details.\r
- @param Value Decimal value to convert to a string in Buffer.\r
-\r
- @return Number of characters printed.\r
-\r
-**/\r
-UINTN\r
-ValueToString (\r
- IN OUT CHAR16 *Buffer,\r
- IN BOOLEAN Flags,\r
- IN INT64 Value\r
- );\r
-\r
/**\r
The internal function prints to the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL\r
protocol instance.\r
{\r
return PrintAt (Column, Row, L"%c", Character);\r
}\r
-\r
-\r
-/**\r
- VSPrint worker function that prints a Value as a decimal number in Buffer.\r
-\r
- @param Buffer Location to place ascii decimal number string of Value.\r
- @param Flags Flags to use in printing decimal string, see file header for\r
- details.\r
- @param Value Decimal value to convert to a string in Buffer.\r
-\r
- @return Number of characters printed.\r
-\r
-**/\r
-UINTN\r
-ValueToString (\r
- IN OUT CHAR16 *Buffer,\r
- IN BOOLEAN Flags,\r
- IN INT64 Value\r
- )\r
-{\r
- CHAR16 TempBuffer[30];\r
- CHAR16 *TempStr;\r
- CHAR16 *BufferPtr;\r
- UINTN Count;\r
- UINTN NumberCount;\r
- UINT32 Remainder;\r
- BOOLEAN Negative;\r
-\r
- Negative = FALSE;\r
- TempStr = TempBuffer;\r
- BufferPtr = Buffer;\r
- Count = 0;\r
- NumberCount = 0;\r
-\r
- if (Value < 0) {\r
- Negative = TRUE;\r
- Value = -Value;\r
- }\r
-\r
- do {\r
- Value = (INT64) DivU64x32Remainder ((UINT64) Value, 10, &Remainder);\r
- *(TempStr++) = (CHAR16) (Remainder + '0');\r
- Count++;\r
- NumberCount++;\r
- if ((Flags & COMMA_TYPE) == COMMA_TYPE) {\r
- if (NumberCount % 3 == 0 && Value != 0) {\r
- *(TempStr++) = ',';\r
- Count++;\r
- }\r
- }\r
- } while (Value != 0);\r
-\r
- if (Negative) {\r
- *(BufferPtr++) = '-';\r
- Count++;\r
- }\r
-\r
- //\r
- // Reverse temp string into Buffer.\r
- //\r
- while (TempStr != TempBuffer) {\r
- *(BufferPtr++) = *(--TempStr);\r
- }\r
-\r
- *BufferPtr = 0;\r
- return Count;\r
-}\r
+++ /dev/null
-/** @file\r
-Micro definitions data for Print.c\r
-\r
-Copyright (c) 2004, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#ifndef _PRINT_H_\r
-#define _PRINT_H_\r
-\r
-#define LEFT_JUSTIFY 0x01\r
-#define PREFIX_SIGN 0x02\r
-#define PREFIX_BLANK 0x04\r
-#define COMMA_TYPE 0x08\r
-#define LONG_TYPE 0x10\r
-#define PREFIX_ZERO 0x20\r
-\r
-//\r
-// Largest number of characters that can be printed out.\r
-//\r
-#define EFI_DRIVER_LIB_MAX_PRINT_BUFFER (80 * 4)\r
-\r
-#endif\r
IN OUT UI_MENU_SELECTION *Selection\r
);\r
\r
-/**\r
- VSPrint worker function that prints a Value as a decimal number in Buffer.\r
-\r
- @param Buffer Location to place ascii decimal number string of Value.\r
- @param Flags Flags to use in printing decimal string, see file header for\r
- details.\r
- @param Value Decimal value to convert to a string in Buffer.\r
-\r
- @return Number of characters printed.\r
-\r
-**/\r
-VOID\r
-ValueToString (\r
- IN CHAR16 *Buffer,\r
- IN BOOLEAN Flags,\r
- IN INT64 Value\r
- );\r
-\r
/**\r
Set Buffer to Value for Size bytes.\r
\r