Page MenuHomeFreeBSD

libm: Implement iseqsig()
Needs ReviewPublic

Authored by kfv on Mon, Oct 12, 11:14 AM.
Tags
None
Referenced Files
F175741973: D60642.id.diff
Mon, Oct 12, 11:12 PM
F175730978: D60642.id.diff
Mon, Oct 12, 8:58 PM
F175725409: D60642.diff
Mon, Oct 12, 7:55 PM
F175696349: D60642.diff
Mon, Oct 12, 2:36 PM
Subscribers

Details

Reviewers
dteske
fuz
Summary

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).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78058
Build 74941: arc lint + arc unit