Skip to content

Conversation

sfreilich
Copy link
Collaborator

The manpage for math.h notes:
https://linux.die.net/man/3/isnanf

"Note that these functions are obsolete. C99 defines macros isfinite(), isinf(), and isnan() (for all types) replacing them."

The C standard documentation here omits isnanf:
https://en.cppreference.com/w/c/header/math

And it seems that many downstream implementations (especially ones for platforms other than Linux) leave it out.

The manpage for math.h notes:
https://linux.die.net/man/3/isnanf

"Note that these functions are obsolete. C99 defines macros isfinite(),
isinf(), and isnan() (for all types) replacing them."

The C standard documentation here omits isnanf:
https://en.cppreference.com/w/c/header/math

And it seems that many downstream implementations (especially
ones for platforms other than Linux) leave it out.
@sfreilich sfreilich requested a review from memononen March 25, 2025 22:51
@sfreilich
Copy link
Collaborator Author

@memononen I know that you asked me to change some code from isnan to isnanf in an earlier code review, but that turns out to cause problems for some downstream consumers, so I'd like to switch that back.

@memononen
Copy link
Owner

I did not realize it was a macro! lgtm

@sfreilich sfreilich merged commit db3a7a1 into memononen:master Mar 26, 2025
1 check passed
@sfreilich sfreilich deleted the isnan branch March 26, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants