SIGN IN SIGN UP

Fix portable is[inf|nan|_out compilation on older Linux (#3272)

Summary:
By wrapping a potentially non-compliant `isinf`/`isnan` implementations into a lambda with a defined return type

Compiler should be able to optimize it out into direct function call, see https://godbolt.org/z/bqYGd47Mx

Pull Request resolved: https://github.com/pytorch/executorch/pull/3272

Reviewed By: GregoryComer

Differential Revision: D56504717

Pulled By: malfet

fbshipit-source-id: 72da456027dbc837c3cfac83b18a5f002fedc3a5
N
Nikita Shulga committed
e25e5d25cfe272f0aefb6205d8f258f3928dcbfb
Parent: 5b0030f
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 4/24/2024, 3:16:50 PM