Use fabsf() instead of Abs() or fabs() where appropriate
Peter Eisentraut <peter@eisentraut.org>
Use fabsf() instead of Abs() or fabs() where appropriate This function is new in C99. 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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/btree_gist/btree_float4.c | modified | +1 −1 |
| contrib/intarray/_int_gist.c | modified | +1 −1 |
| contrib/seg/seg.c | modified | +3 −2 |
| src/backend/utils/adt/float.c | modified | +1 −1 |
Discussion
- get rid of Abs() 3 messages · 2022-10-04