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

Function isNegativeNumber

Library/OcGuardLib/Ubsan.c:1716–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1714}
1715
1716static bool
1717isNegativeNumber(char *szLocation, struct CTypeDescriptor *pType, unsigned long ulNumber)
1718{
1719
1720 ASSERT(szLocation);
1721 ASSERT(pType);
1722 ASSERT(pType->mTypeKind == KIND_INTEGER);
1723
1724 if (!ISSET(pType->mTypeInfo, NUMBER_SIGNED_BIT))
1725 return false;
1726
1727 return llliGetNumber(szLocation, pType, ulNumber) < 0;
1728}
1729
1730static bool
1731isShiftExponentTooLarge(char *szLocation, struct CTypeDescriptor *pType, unsigned long ulNumber, size_t zWidth)

Callers 1

HandleShiftOutOfBoundsFunction · 0.85

Calls 1

llliGetNumberFunction · 0.85

Tested by

no test coverage detected