[Cfp-interest 1837] fmax, fmin

Fred J. Tydeman tydeman at tybor.com
Tue Nov 3 11:42:46 PST 2020


I am not sure what I should be doing here about this item.

Here is a first pass.  Comments welcome.

Background.

IEEE 754-2008 had minNum, minNumMag, maxNum, and maxNumMag operations.
Some of these were added to C99 as fmin and fmax (based upon IEEE
754 work in progress???).

They have been replaced in IEEE 754-2019 with minimum, minimumNumber,
maximum, and maximumNumber, minimumMagnitude, minimumMagnitudeNumber,
maximumMagnitude, and maximumMagnitudeNumber.  These have been added
to C23; some with shorter names.

WG14 N2573 C2x draft

5.2.4.2.3#7: Maybe remove fmax and fmin from the Preferred quantum
exponents table.

7.12.12.2 fmax: Maybe add something like: These functions have been
superseded by fmaximum.

Maybe add [[deprecated]] -- this is based upon: 164) In particular,
deprecated is appropriate for names and entities that are obsolescent,
insecure, unsafe, or otherwise unfit for purpose.

Remove fmaxd32, fmaxd64, fmaxd128.

7.12.12.3 fmin: Maybe add something like: These functions have been
superseded by fminimum.  Maybe add [[deprecated]].

Remove fmind32, fmind64, fmind128.

7.25#15: Replace fmax with fmaximum in three places

7.31.8: Maybe add something about fmin and fmax being obsolescent.

F.3#1: Remove fmax and fmin from the Operation binding table.

F.3#3:  Maybe add something like:  These functions have been
superseded by fminimum and fmaximum.

F.10.9.2 fmax: ???
F.10.9.3 fmin: ???

G.5.1#8: Replace fmax with fmaximum.

WG14 N2601 Part 3 as annex X

In 7.12.11 Manipulation functions, remove:
fmaxfN
fmaxfNx
fmaxdN
fmaxdNx

fminfN
fminfNx
fmindN
fmindNx



---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list