pgsql: Use fabsf() instead of Abs() or fabs() where appropriate

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use fabsf() instead of Abs() or fabs() where appropriate
Date: 2022-10-08 11:50:38
Message-ID: E1oh8Ll-001SFj-Lj@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use fabsf() instead of Abs() or fabs() where appropriate

This function is new in C99.

Reviewed-by: Zhang Mingli <zmlpostgres(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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/e4c61bedcb791fe79fdc4e96a3a7ab59b0dbacaf

Modified Files
--------------
contrib/btree_gist/btree_float4.c | 2 +-
contrib/intarray/_int_gist.c | 2 +-
contrib/seg/seg.c | 5 +++--
src/backend/utils/adt/float.c | 2 +-
4 files changed, 6 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-10-08 17:36:32 pgsql: pgstat: Prevent stats reset from corrupting slotname by removing
Previous Message Andres Freund 2022-10-07 19:04:04 pgsql: autoconf: Rely on ar supporting index creation