MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / safe_divide

Function safe_divide

benchmarks/benchmarks.cpp:1713–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1711}
1712
1713static inline double safe_divide(double a, double b)
1714{
1715 return b == 0 ? 0 : a / b;
1716}
1717
1718// Returns a positive number formatted in a string in a human-readable way.
1719// The string is always 7 characters or less (excluding null byte).

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected