MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / normalize

Method normalize

extern/json/json.hpp:16968–16979  ·  view source on GitHub ↗

! @brief normalize x such that the significand is >= 2^(q-1) @pre x.f != 0 */

Source from the content-addressed store, hash-verified

16966 @pre x.f != 0
16967 */
16968 static diyfp normalize(diyfp x) noexcept
16969 {
16970 JSON_ASSERT(x.f != 0);
16971
16972 while ((x.f >> 63u) == 0)
16973 {
16974 x.f <<= 1u;
16975 x.e--;
16976 }
16977
16978 return x;
16979 }
16980
16981 /*!
16982 @brief normalize x such that the result has the exponent E

Callers 11

updateDataMethod · 0.45
mainFunction · 0.45
determineValuesFunction · 0.45
generateFoamFunction · 0.45
computeNormalsFunction · 0.45
getOrthogonalVectorsFunction · 0.45
generateFoamParticlesFunction · 0.45
distanceMethod · 0.45
computeCohesionMethod · 0.45
computeNormalsMethod · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected