MCPcopy Create free account
hub / github.com/Kitware/VTK / IsSigned

Function IsSigned

Common/Core/vtkVariantInlineOperators.h:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27inline bool IsSigned(int VariantType)
28{
29#if (CHAR_MIN == SCHAR_MIN && CHAR_MAX == SCHAR_MAX)
30 // the char type is signed on this compiler
31 return ((VariantType == VTK_CHAR) || (VariantType == VTK_SIGNED_CHAR) ||
32 (VariantType == VTK_SHORT) || (VariantType == VTK_INT) || (VariantType == VTK_LONG) ||
33 (VariantType == VTK_ID_TYPE) || IsSigned64Bit(VariantType));
34#else
35 // char is unsigned
36 return ((VariantType == VTK_SIGNED_CHAR) || (VariantType == VTK_SHORT) ||
37 (VariantType == VTK_INT) || (VariantType == VTK_LONG) || (VariantType == VTK_ID_TYPE) ||
38 IsSigned64Bit(VariantType));
39#endif
40}
41
42// ----------------------------------------------------------------------
43

Callers 3

operator==Method · 0.85
operator<Method · 0.85
operator()Method · 0.85

Calls 1

IsSigned64BitFunction · 0.85

Tested by

no test coverage detected