[PATCH] D19623: [libcxx] [test] Initialize local doubles to NaN.

Howard Hinnant via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 29 14:04:13 PDT 2016


howard.hinnant added a comment.

A quiet nan is the right tool.  A signaling nan is nothing more than a 40-year-old design flaw.  A quiet nan is "sticky" in that if you try to compute with it, the result is quiet nan.  But you can assign a valid number to something containing a quiet nan.  So if your answer has nans in it, you know you didn't initialize something properly somewhere.


http://reviews.llvm.org/D19623





More information about the cfe-commits mailing list