• Tom Lane's avatar
    Factor out the common subexpression month_remainder * DAYS_PER_MONTH · 2613b747
    Tom Lane authored
    in interval_mul and interval_div.  This avoids an optimization bug
    in A Certain Company's compiler (and given their explanation, I wouldn't
    be surprised if other compilers blow it too).  Besides the code seems
    more clear this way --- in the original formulation, you had to mentally
    recognize the common subexpression in order to understand what was going
    on.
    2613b747
timestamp.c 95.5 KB