MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / set_infinity

Function set_infinity

example/cacheHierarchy/fkYAML/node.hpp:5222–5224  ·  view source on GitHub ↗

@brief Set an infinite `float` value based on the given signedness. @param f The output `float` value holder. @param sign Whether the infinite value should be positive or negative.

Source from the content-addressed store, hash-verified

5220/// @param f The output `float` value holder.
5221/// @param sign Whether the infinite value should be positive or negative.
5222inline void set_infinity(float& f, const float sign) noexcept {
5223 f = std::numeric_limits<float>::infinity() * sign;
5224}
5225
5226/// @brief Set an infinite `double` value based on the given signedness.
5227/// @param f The output `double` value holder.

Callers 1

atofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected