[libc-commits] [PATCH] D82330: [libc] Match x86 long double NaN classification with that of the compiler.
Fangrui Song via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Jun 22 15:03:28 PDT 2020
MaskRay added inline comments.
================
Comment at: libc/test/utils/FPUtil/x86_long_double_test.cpp:27
+ // then the number is a NaN for all values of mantissa.
+ bits.mantissa = i;
+ long double nan = bits;
----------------
You can test whether some combinations of bits are significant, instead of iterating over all integers from 0 to 1000000 (it is slow).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82330/new/
https://reviews.llvm.org/D82330
More information about the libc-commits
mailing list