pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unnecessary uses of Abs()
Date: Fri, 07 Oct 2022 11:38:05 +0000
Message-ID: <E1oglg5-001J3Z-7n@gemulon.postgresql.org> (raw)

Remove unnecessary uses of Abs()

Use C standard abs() or fabs() instead.

Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f14aad5169baa5e2ac25d49f1d18f9d5cb3bc7f2

Modified Files
--------------
contrib/btree_gist/btree_date.c           |  4 ++--
contrib/btree_gist/btree_float8.c         |  4 ++--
contrib/btree_gist/btree_int2.c           |  2 +-
contrib/btree_gist/btree_int4.c           |  2 +-
contrib/btree_gist/btree_interval.c       |  2 +-
contrib/btree_gist/btree_time.c           |  2 +-
contrib/btree_gist/btree_ts.c             |  2 +-
contrib/btree_gist/btree_utils_num.h      |  2 +-
contrib/btree_gist/btree_utils_var.c      |  2 +-
contrib/cube/cube.c                       |  2 +-
contrib/intarray/_int_gist.c              |  3 ++-
contrib/intarray/_intbig_gist.c           |  4 +++-
contrib/ltree/_ltree_gist.c               |  4 +++-
contrib/seg/seg.c                         |  4 ++--
src/backend/access/gist/gistproc.c        |  4 ++--
src/backend/optimizer/geqo/geqo_erx.c     |  8 ++++----
src/backend/partitioning/partbounds.c     |  4 ++--
src/backend/utils/adt/datetime.c          |  8 ++++----
src/backend/utils/adt/numeric.c           | 20 ++++++++++----------
src/backend/utils/adt/rangetypes_gist.c   |  4 ++--
src/backend/utils/adt/selfuncs.c          |  2 +-
src/backend/utils/adt/timestamp.c         |  4 ++--
src/backend/utils/adt/tsgistidx.c         |  2 +-
src/backend/utils/adt/tsrank.c            |  2 +-
src/backend/utils/misc/guc.c              |  2 +-
src/interfaces/ecpg/pgtypeslib/interval.c |  4 ++--
26 files changed, 54 insertions(+), 49 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1oglg5-001J3Z-7n@gemulon.postgresql.org>
Permalink:  ../E1oglg5-001J3Z-7n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oglg5-001J3Z-7n@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Remove unnecessary uses of Abs()
  In-Reply-To: <E1oglg5-001J3Z-7n@gemulon.postgresql.org>
  References: <E1oglg5-001J3Z-7n@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox