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

Function xmlInitXPathInternal

ThirdParty/libxml2/vtklibxml2/xpath.c:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 */
164ATTRIBUTE_NO_SANITIZE("float-divide-by-zero")
165void
166xmlInitXPathInternal(void) {
167#if defined(NAN) && defined(INFINITY)
168 xmlXPathNAN = NAN;
169 xmlXPathPINF = INFINITY;
170 xmlXPathNINF = -INFINITY;
171#else
172 /* MSVC doesn't allow division by zero in constant expressions. */
173 double zero = 0.0;
174 xmlXPathNAN = 0.0 / zero;
175 xmlXPathPINF = 1.0 / zero;
176 xmlXPathNINF = -xmlXPathPINF;
177#endif
178}
179
180/**
181 * xmlXPathIsNaN:

Callers 1

xmlInitParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected