Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP3zw-0000Ww-UE for pgsql-committers@arkaria.postgresql.org; Wed, 13 Dec 2017 10:10:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP3zw-0004Nq-9C for pgsql-committers@arkaria.postgresql.org; Wed, 13 Dec 2017 10:10:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eP3zw-0004Ng-1T for pgsql-committers@lists.postgresql.org; Wed, 13 Dec 2017 10:10:44 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eP3zr-0003P0-HC for pgsql-committers@postgresql.org; Wed, 13 Dec 2017 10:10:42 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3yxXWd5D4Kz3Dyv; Wed, 13 Dec 2017 11:10:37 +0100 (CET) Date: Wed, 13 Dec 2017 11:10:37 +0100 From: Christoph Berg To: Andres Freund Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Provide overflow safe integer math inline functions. Message-ID: <20171213101037.GA28753@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Andres Freund , pgsql-committers@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Andres Freund 2017-12-13 > 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