MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / UnitRoundoff

Function UnitRoundoff

externalpackages/PVODE/source/llnlmath.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23real UnitRoundoff(void)
24{
25 real u;
26 volatile real one_plus_u;
27
28 u = ONE;
29 one_plus_u = ONE + u;
30 while (one_plus_u != ONE) {
31 u /= TWO;
32 one_plus_u = ONE + u;
33 }
34 u *= TWO;
35
36 return(u);
37}
38
39
40real RPowerI(real base, int exponent)

Callers 1

CVodeMallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected