diff --git a/src/rawtoaces_core/core_math.cpp b/src/rawtoaces_core/core_math.cpp index 5edf8142..cd9e25c2 100644 --- a/src/rawtoaces_core/core_math.cpp +++ b/src/rawtoaces_core/core_math.cpp @@ -587,15 +587,15 @@ template struct is_same }; // (6/29)^3, used in lab_F() and lab_F_prime(). -constexpr double v_6_29__3 = 6.0 * 6.0 * 6.0 / 29.0 / 29.0 / 29.0; +constexpr double v_6_29_3 = 6.0 * 6.0 * 6.0 / 29.0 / 29.0 / 29.0; // (29/6)^2, used in lab_F() and lab_F_prime(). -constexpr double v_29_6__2 = 29.0 * 29.0 / 6.0 / 6.0; +constexpr double v_29_6_2 = 29.0 * 29.0 / 6.0 / 6.0; // The non-linear perceptual function of the XYZ to LAB conversion. template T lab_F( T arg ) { - if ( arg > v_6_29__3 ) + if ( arg > v_6_29_3 ) { #if RTA_HAS_CERES constexpr bool is_ceres = !is_same::value; @@ -610,14 +610,14 @@ template T lab_F( T arg ) } } else - return arg * v_29_6__2 / 3.0 + 4.0 / 29.0; + return arg * v_29_6_2 / 3.0 + 4.0 / 29.0; } // The derivative of `lab_F`, see above. // (lab_F(arg))' = lab_F'(arg) * arg' template T lab_F_prime( T arg, T arg_prime ) { - if ( arg > v_6_29__3 ) + if ( arg > v_6_29_3 ) { #if RTA_HAS_CERES constexpr bool is_ceres = !is_same::value; @@ -639,7 +639,7 @@ template T lab_F_prime( T arg, T arg_prime ) } } else - return arg_prime * v_29_6__2 / 3.0; + return arg_prime * v_29_6_2 / 3.0; } // XYZ to LAB conversion.