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

Function IsZeroGuid

MdePkg/Library/PeiMemoryLib/MemLibGuid.c:152–165  ·  view source on GitHub ↗

Checks if the given GUID is a zero GUID. This function checks whether the given GUID is a zero GUID. If the GUID is identical to a zero GUID then TRUE is returned. Otherwise, FALSE is returned. If Guid is NULL, then ASSERT(). @param Guid The pointer to a 128 bit GUID. @retval TRUE Guid is a zero GUID. @retval FALSE Guid is not a zero GUID. **/

Source from the content-addressed store, hash-verified

150
151**/
152BOOLEAN
153EFIAPI
154IsZeroGuid (
155 IN CONST GUID *Guid
156 )
157{
158 UINT64 LowPartOfGuid;
159 UINT64 HighPartOfGuid;
160
161 LowPartOfGuid = ReadUnaligned64 ((CONST UINT64*) Guid);
162 HighPartOfGuid = ReadUnaligned64 ((CONST UINT64*) Guid + 1);
163
164 return (BOOLEAN) (LowPartOfGuid == 0 && HighPartOfGuid == 0);
165}

Callers 15

GetHandleFormModuleGuidFunction · 0.50
GetDriverNameStringFunction · 0.50
DumpSmiHandlerFunction · 0.50
GetDriverNameStringFunction · 0.50
SmmVariableGetStatisticsFunction · 0.50
UiFindMenuListFunction · 0.50
GetIfrBinaryDataFunction · 0.50
EvaluateExpressionFunction · 0.50
ProcessGotoOpCodeFunction · 0.50

Calls 1

ReadUnaligned64Function · 0.50

Tested by

no test coverage detected