Replaced inline functions by constexpr ones.