[Cfp-interest 1967] cr_ prefix
Fred J. Tydeman
tydeman at tybor.com
Sun Apr 11 06:35:11 PDT 2021
On Thu, 25 Mar 2021 08:45:23 -0600 Rajan Bhakta wrote:
>
> Fred: Create a WG14 proposal to reserve either cr_ or reserve
>specific cr_{function name}s as per CFP 1906 and let WG14 decide.
Attached.
---
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.
-------------- next part --------------
Submitter:CFP group
Submission Date: 2021-??-??
Document: WG14 N26??
Title: N26??: cr_ prefix
Reference Documents:WG14 N2596, CFP 1906
Summary: The list of correctly rounded functions (functions with a
prefix of cr_) may be easy to overlook as new math functions get added
to C.
The easy solution is to reserve the cr_ prefix for correctly rounded
math functions. The other option is to add to the existing list of cr_
functions.
These page numbers are for N2596.
1. Reserve cr_ as a prefix.
Change 7.31.8 Mathematics <math.h> paragraph 4 from
The function names
cr_acosh cr_acospi cr_acos cr_asinh cr_asinpi cr_asin cr_atan2pi
cr_atan2 cr_atanh cr_atanpi cr_atan cr_compoundn cr_cosh cr_cospi
cr_cos cr_exp10m1 cr_exp10 cr_exp2m1 cr_exp2 cr_expm1 cr_exp
cr_hypot cr_log10p1 cr_log10 cr_log1p cr_log2p1 cr_log2 cr_logp1
cr_log cr_pown cr_powr cr_pow cr_rootn cr_rsqrt cr_sinh cr_sinpi
cr_sin cr_tanh cr_tanpi cr_tan
and the same names suffixed with f, l, d32, d64, or d128 are
potentially reserved identifiers and may be added to the
declarations in <math.h> header.
to
[DEL: The function names
cr_acosh cr_acospi cr_acos cr_asinh cr_asinpi cr_asin cr_atan2pi
cr_atan2 cr_atanh cr_atanpi cr_atan cr_compoundn cr_cosh cr_cospi
cr_cos cr_exp10m1 cr_exp10 cr_exp2m1 cr_exp2 cr_expm1 cr_exp
cr_hypot cr_log10p1 cr_log10 cr_log1p cr_log2p1 cr_log2 cr_logp1
cr_log cr_pown cr_powr cr_pow cr_rootn cr_rsqrt cr_sinh cr_sinpi
cr_sin cr_tanh cr_tanpi cr_tan
and the same names suffixed with f, l, d32, d64, or d128 :DEL]
[INS: Function names that begin with cr_ :INS] are [DEL:
potentially :DEL] reserved identifiers and may be added to the
declarations in <math.h> header.
Remove the "cr_*" entries on printed page 514 in J.6.2 Particular
identifiers or keywords.
2. Continue with a (partial) list of math functions and add
[INS: cr_sqrt :INS]
to the existing list in 7.31.8#4 (it already is in page 514 in
J.6.2). Before when just cr was the prefix, crsqrt was ambiguous
as it could be a correctly rounded sqrt, or a complex reciprocal
sqrt; hence was not included in the list.
More information about the Cfp-interest
mailing list