You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Factor out the common subexpression month_remainder * DAYS_PER_MONTH
in interval_mul and interval_div. This avoids an optimization bugin A Certain Company's compiler (and given their explanation, I wouldn'tbe surprised if other compilers blow it too). Besides the code seemsmore clear this way --- in the original formulation, you had to mentallyrecognize the common subexpression in order to understand what was goingon.