Skip to content

core: replace #define'd HP_MAX_64 with static constexpr.

Tolik Zinovyev requested to merge tolikzinovyev/ns-3-dev:hp_max_64 into master

Calling std::pow every time HP_MAX_64 is used is very expensive. Fortunately, newer C++ standards allow defining compile-time const floats with constexpr.

Merge request reports