Re: pgsql: Provide overflow safe integer math inline functions.

From: Christoph Berg <myon(at)debian(dot)org>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Provide overflow safe integer math inline functions.
Date: 2017-12-13 10:10:37
Message-ID: 20171213101037.GA28753@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Re: Andres Freund 2017-12-13 <E1eOvQF-00075r-Cy(at)gemulon(dot)postgresql(dot)org>
> Provide overflow safe integer math inline functions.

The new _overflow functions have buggy comments:

/*
* If a - b overflows, return true, otherwise store the result of a + b into
* *result. ^ there

Christoph

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-12-13 14:37:25 Re: pgsql: Provide overflow safe integer math inline functions.
Previous Message Andres Freund 2017-12-13 07:53:29 pgsql: Add float.h include to int8.c, for isnan().

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2017-12-13 10:10:46 Re: [HACKERS] Custom compression methods
Previous Message David Rowley 2017-12-13 09:48:02 Re: [HACKERS] path toward faster partition pruning