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

Function isShiftExponentTooLarge

Library/OcGuardLib/Ubsan.c:1730–1739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1728}
1729
1730static bool
1731isShiftExponentTooLarge(char *szLocation, struct CTypeDescriptor *pType, unsigned long ulNumber, size_t zWidth)
1732{
1733
1734 ASSERT(szLocation);
1735 ASSERT(pType);
1736 ASSERT(pType->mTypeKind == KIND_INTEGER);
1737
1738 return llluGetNumber(szLocation, pType, ulNumber) >= zWidth;
1739}
1740
1741#endif // HAVE_UBSAN_SUPPORT

Callers 1

HandleShiftOutOfBoundsFunction · 0.85

Calls 1

llluGetNumberFunction · 0.85

Tested by

no test coverage detected