diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-25 05:01:43 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-25 05:01:43 +0000 |
commit | 2613b7478573c7fc833c90ff8aa731a15d32aaaf (patch) | |
tree | 1ee03db46747fc09c1e319e9f75d95fbee4412a6 /src/backend/commands/cluster.c | |
parent | ca4cf09232ae37c5cdaed23236dc37f37bedff55 (diff) | |
download | postgresql-2613b7478573c7fc833c90ff8aa731a15d32aaaf.tar.gz postgresql-2613b7478573c7fc833c90ff8aa731a15d32aaaf.zip |
Factor out the common subexpression month_remainder * DAYS_PER_MONTH
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.
Diffstat (limited to 'src/backend/commands/cluster.c')
0 files changed, 0 insertions, 0 deletions