C23 adds iseqsig(), the signaling counterpart of ==, which
raises FE_INVALID on any NaN rather than only on signaling
ones (as per §7.12.17.7). The helpers raise it explicitly
instead of relying on relational operators, which the
compiler may emit as quiet comparisons, and the macro
dispatches on float_t so that wider-evaluated arguments
are not narrowed (§F.10.14.1).
Details
Details
- Reviewers
dteske fuz - Commits
- rGc8341e615406: libm: Implement iseqsig()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Probably correct. I wonder if there is a built-in for this one. X86 for example has this as a instruction afaik.
Approved for commit.
Comment Actions
Not one that helps us yet. GCC 14 has __builtin_iseqsig, but Clang doesn't (neither the base version nor upstream). I'll keep an eye out for it and add a builtin support branch later.