Commit e25e5d2
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: #3272
Reviewed By: GregoryComer
Differential Revision: D56504717
Pulled By: malfet
fbshipit-source-id: 72da456027dbc837c3cfac83b18a5f002fedc3a51 parent 5b0030f commit e25e5d2
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments