MCPcopy Create free account
hub / github.com/F-Stack/f-stack / isNegativeNumber

Function isNegativeNumber

freebsd/kern/kern_ubsan.c:1681–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1679}
1680
1681static bool
1682isNegativeNumber(char *szLocation, struct CTypeDescriptor *pType, unsigned long ulNumber)
1683{
1684
1685 ASSERT(szLocation);
1686 ASSERT(pType);
1687 ASSERT(pType->mTypeKind == KIND_INTEGER);
1688
1689 if (!ISSET(pType->mTypeInfo, NUMBER_SIGNED_BIT))
1690 return false;
1691
1692 return llliGetNumber(szLocation, pType, ulNumber) < 0;
1693}
1694
1695static bool
1696isShiftExponentTooLarge(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