[Bug 294692] lib/msun: Replaced manual checks with isnan()
[email protected] Wed, 22 Apr 2026 17:23:43 +0000
| Newsgroups | gmane.os.freebsd.devel.standards |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294692 --- Comment #4 from Jes=C3=BAs Cipriano Bl=C3=A1zquez Mart=C3=ADnez <jesusc= [email protected]> --- (In reply to Robert Clausecker from comment #3) I believe it is only NaN check, but since they have to extract the absolute value for the function anyway, they are using it to save a bit of performan= ce at the cost of legibility.=20 (ix>=3D0x7ff00000) is equal to ux.exp=3D=3D 0x7ff and ((ix-0x7ff00000)|lx)!= =3D0) is checking the mantissa isn't 0. I do agree that maybe it is better to leave the checks in those functions as they were, or to do as Kargl said and move them before the EXTRACT_WORDS. I don't know what would be better. --=20 You are receiving this mail because: You are the assignee for the bug.=