[Cfp-interest 1896] fmax, fmin
Fred J. Tydeman
tydeman at tybor.com
Wed Jan 13 10:06:52 PST 2021
Background.
IEEE 754-2008 had minNum, minNumMag, maxNum, and maxNumMag operations.
Some of these were added to C99 as fmin and fmax.
WG14/N1137 Technical Report 24732 added fmind32/64/128 and fmaxd32/64/128.
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.
The following changes are against WG14 N2596 C23 draft.
Move 7.12.12.11#4
<blockquote>
NOTE The fmax and fmin functions are similar to the fmaximum_num and
fminimum_num functions, though may differ in which signed zero is
returned when the arguments are differently signed zeros and in their
treatment of signaling NaNs (see F.10.9.5).
</blockquote>
to between 7.12.12 and 7.12.12.1.
7.25#15: Replace <del>fmax</del> with <ins>fmaximum</ins> in three places
7.31.8: Maybe add something about fmin and fmax should not be used in
new code; instead use fminimum_num and fmaximum_num.
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_num and fmaximum_num.
G.5.1#8: Replace <del>fmax</del> with <ins>fmaximum_num</ins>.
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