Re: Unexpected interval comparison

Vick Khera <vivek@khera.org>

From: Vick Khera <vivek@khera.org>
To: pgsql-general@postgresql.org
Date: 2017-04-04T12:39:59Z
Lists: pgsql-general
On Tue, Apr 4, 2017 at 4:15 AM, Kyotaro HORIGUCHI <
horiguchi.kyotaro@lab.ntt.co.jp> wrote:

> The previous expression intended to avoid decimal arithmetic, but
> gcc optimizes the simple division better (using cmovns-add-sar)
> than the current INT64_AU32 (jmp-sar) so I changed it. This
> doesn't suffer overflow.
>
>
How does this affect non-gcc compilers? Specifically I am interested in the
llvm based compilers in FreeBSD. Or is this within a gcc-specific section
of the header?

Commits

  1. Fix integer-overflow problems in interval comparison.