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

Function CompareGuid

BaseTools/Source/C/Common/CommonLib.c:115–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115INTN
116CompareGuid (
117 IN EFI_GUID *Guid1,
118 IN EFI_GUID *Guid2
119 )
120/*++
121
122Routine Description:
123
124 Compares to GUIDs
125
126Arguments:
127
128 Guid1 - guid to compare
129 Guid2 - guid to compare
130
131Returns:
132 = 0 if Guid1 == Guid2
133 != 0 if Guid1 != Guid2
134
135--*/
136{
137 INT32 *g1;
138 INT32 *g2;
139 INT32 r;
140
141 //
142 // Compare 32 bits at a time
143 //
144 g1 = (INT32 *) Guid1;
145 g2 = (INT32 *) Guid2;
146
147 r = g1[0] - g2[0];
148 r |= g1[1] - g2[1];
149 r |= g1[2] - g2[2];
150 r |= g1[3] - g2[3];
151
152 return r;
153}
154
155
156EFI_STATUS

Callers 15

GetFileByNameFunction · 0.70
FSInject.cFile · 0.50
FSI_FP_GetInfoFunction · 0.50
CoreNotifySignalListFunction · 0.50
Event.cFile · 0.50
CoreScheduleFunction · 0.50
CoreTrustFunction · 0.50
FvIsBeingProcesssedFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected