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. **/
| 150 | |
| 151 | **/ |
| 152 | BOOLEAN |
| 153 | EFIAPI |
| 154 | IsZeroGuid ( |
| 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 | } |
nothing calls this directly
no test coverage detected