Re: [PATCH] Improve geometric types - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: [PATCH] Improve geometric types
Date
Msg-id CAEepm=3TgKdGWkpudFGncw86=PCvkYmwi4YDr4MN1bWnCfutEA@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Improve geometric types  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: [PATCH] Improve geometric types  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
On Sun, Jul 29, 2018 at 10:35 PM, Tomas Vondra
<tomas.vondra@2ndquadrant.com> wrote:
> It's always 0/-0 difference, and it's limited to power machines. I'll
> try to get access to such system and see what's wrong.

This is suspicious:

        /* on some platforms, the preceding expression tends to produce -0 */
        if (line->C == 0.0)
            line->C = 0.0;

FWIW I tried this on our Linux/POWER8 box but it didn't show the problem.

-- 
Thomas Munro
http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: Covering GiST indexes
Next
From: Thomas Munro
Date:
Subject: Re: [PATCH] Improve geometric types