Commit 3d58431c authored by Kamal Marhubi's avatar Kamal Marhubi

Add isNaN to kj/common.h

parent a6ad4639
......@@ -594,6 +594,9 @@ float nan();
#error "Not sure how to support your compiler."
#endif
inline constexpr bool isNaN(float f) { return f != f; }
inline constexpr bool isNaN(double f) { return f != f; }
// =======================================================================================
// Useful fake containers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment