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

Function xmlXPathIsInf

ThirdParty/libxml2/vtklibxml2/xpath.c:205–216  ·  view source on GitHub ↗

* xmlXPathIsInf: * @val: a double value * * Checks whether a double is an infinity. * * Returns 1 if the value is +Infinite, -1 if -Infinite, 0 otherwise */

Source from the content-addressed store, hash-verified

203 * Returns 1 if the value is +Infinite, -1 if -Infinite, 0 otherwise
204 */
205int
206xmlXPathIsInf(double val) {
207#ifdef isinf
208 return isinf(val) ? (val > 0 ? 1 : -1) : 0;
209#else
210 if (val >= xmlXPathPINF)
211 return 1;
212 if (val <= -xmlXPathPINF)
213 return -1;
214 return 0;
215#endif
216}
217
218#endif /* SCHEMAS or XPATH */
219

Callers 7

doXPathDumpFunction · 0.85
xmlXPathDebugDumpObjectFunction · 0.85
xmlXPathFormatNumberFunction · 0.85
xmlXPathCompareValuesFunction · 0.85
xmlSchemaFormatFloatFunction · 0.85

Calls 1

isinfFunction · 0.85

Tested by

no test coverage detected