[PATCH] D34518: [ADT] Add llvm::to_float

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 11:34:56 PDT 2017


efriedma added a comment.

> it looks like it doesn't easily support long double

APFloat::convertFromString works for every floating-point type supported by APFloat; clang uses it to parse floating-point literals.  There isn't any convenient way to convert an APFloat to a long double, but that's mostly because there hasn't been any demand for it; the format of long double is platform-dependent.


https://reviews.llvm.org/D34518





More information about the llvm-commits mailing list