MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / mallocNan

Function mallocNan

src/OSspecific/POSIX/signals/sigFpe.C:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void* Foam::sigFpe::mallocNan(size_t size)
76{
77 // Call the low-level GLIBC malloc function
78 void * result = __libc_malloc(size);
79
80 // Initialize to signalling NaN
81 UList<scalar> lst(reinterpret_cast<scalar*>(result), size/sizeof(scalar));
82 sigFpe::fillNan(lst);
83
84 return result;
85}
86#endif
87
88

Callers 1

mallocFunction · 0.85

Calls 1

fillNanFunction · 0.85

Tested by

no test coverage detected