MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / PrintValue

Function PrintValue

CloverEFI/OsxEfiLdr/Debug.c:89–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89VOID
90PrintValue (
91 UINT32 Value
92 )
93{
94 UINT32 Index;
95 CHAR8 Char;
96 CHAR8 String[9];
97
98 for (Index = 0; Index < 8; Index++) {
99 Char = (UINT8)(((Value >> ((7 - Index) * 4)) & 0x0f) + '0');
100 if (Char > '9') {
101 Char = (UINT8) (Char - '0' - 10 + 'A');
102 }
103 String[Index] = Char;
104 }
105
106 String[sizeof (String) - 1] = '\0';
107
108 PrintString (String);
109}
110
111VOID
112PrintValue64 (

Callers 1

PrintValue64Function · 0.70

Calls 1

PrintStringFunction · 0.70

Tested by

no test coverage detected