<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">On further thought, type-generic macros for augmented arithmetic seem problematic. The user must figure out the type that will be determined from the macro arguments in order to pick the right struct to match the return type. For example, with<div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><b>_Float64 f64;</b></div><div><b>_Float32x f32x;</b></div></blockquote><div><br></div><div>the return type for <b>augadd(f64, f32x)</b> might be <b>struct f64aug_t</b> or <b>struct f32xaug_t</b>, depending on the implementation’s format for <b>_Float32x</b>.</div><div><br></div><div>I think we’re left with option 3, and the need to remove the type-generic macros for augmented arithmetic from the current draft of TS-4 (without new headers) before sending it to WG14.</div><div><br></div><div>- Jim Thomas<br><div><br><blockquote type="cite"><div>On Oct 21, 2023, at 11:47 AM, Jim Thomas <jaswthomas@sbcglobal.net> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=us-ascii"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">This is about an issue that arose in reworking TS-4r to use new headers. The current draft of TS-4r adds augmented-arithmetic functions to <b><math.h></b> and type-generic macros for them to <b><tgmath.h></b>. The draft in progress has the augmented arithmetic functions in a new header <b><augarith.h></b>. The issue is, what to do with their type-generic macros?<div><br></div><div>Adding new macros to <b><tgmath.h></b> in contrary to our given direction to introduce new identifiers in new headers.</div><div><br></div><div>Adding type-generic macros, along with the functions, unconditionally to <b><augarith.h></b> would have the effect of overriding the functions.</div><div><br></div><div>These resolution options came to mind:</div><div><br></div><div>1. Add the type generic macros to <b><augarith.h></b> conditioned by a user-defined WANT macro, e.g. <b>__STDC_WANT_TGAUGARITH__</b>.</div><div><br></div><div>2. Add the type generic macros to <b><augarith.h></b> conditioned by whether <b><tgmath.h></b> has been included.</div><div><br></div><div>3. Remove the type-generic macros for augmented arithmetic from the TS.</div><div><br></div><div>Your thoughts?</div><div><br></div><div>- JIm Thomas</div><div><br></div></div>_______________________________________________<br>Cfp-interest mailing list<br>Cfp-interest@oakapple.net<br>http://mailman.oakapple.net/mailman/listinfo/cfp-interest<br></div></blockquote></div><br></div></body></html>