xo-unit: tidy: nu_product() -> su_product()

This commit is contained in:
Roland Conybeare 2024-04-27 08:08:43 -04:00
commit 10f79238b7
3 changed files with 5 additions and 5 deletions

View file

@ -98,7 +98,7 @@ namespace xo {
using r_int2x_type = std::common_type_t<typename Quantity2::ratio_int2x_type,
typename Quantity2::ratio_int2x_type>;
auto rr = detail::nu_product<r_int_type, r_int2x_type>(x.unit(), y.unit());
auto rr = detail::su_product<r_int_type, r_int2x_type>(x.unit(), y.unit());
r_repr_type r_scale = (::sqrt(rr.outer_scale_sq_)
* rr.outer_scale_exact_.template to<r_repr_type>()

View file

@ -102,7 +102,7 @@ namespace xo {
template <typename Int, typename Int2x = width2x<Int>>
constexpr
scaled_unit<Int>
nu_product(const natural_unit<Int> & lhs_bpu_array,
su_product(const natural_unit<Int> & lhs_bpu_array,
const natural_unit<Int> & rhs_bpu_array)
{
natural_unit<Int2x> prod = lhs_bpu_array.template to_repr<Int2x>();
@ -167,7 +167,7 @@ namespace xo {
operator* (const scaled_unit<Int> & x_unit,
const scaled_unit<Int> & y_unit)
{
auto rr = detail::nu_product<Int, Int2x>(x_unit.natural_unit_,
auto rr = detail::su_product<Int, Int2x>(x_unit.natural_unit_,
y_unit.natural_unit_);
return (scaled_unit<Int>

View file

@ -41,7 +41,7 @@ namespace xo {
using xo::qty::detail::bpu2_product;
using xo::qty::natural_unit;
using xo::qty::bpu_array_maker;
using xo::qty::detail::nu_product;
using xo::qty::detail::su_product;
using xo::qty::detail::nu_bpu_product;
using xo::qty::detail::nu_ratio_inplace;
using xo::qty::detail::su_ratio;
@ -729,7 +729,7 @@ namespace xo {
static_assert(w.n_bpu() == 1);
constexpr auto prod_rr = nu_product<int64_t, __int128_t>(v, w);
constexpr auto prod_rr = su_product<int64_t, __int128_t>(v, w);
log && log(xtag("prod_rr.bpu_array", prod_rr.natural_unit_));
log && log(xtag("prod_rr.outer_scale_exact", prod_rr.outer_scale_exact_));