[PATCH] D69773: [APFloat] Extend converting from special strings
Ehud Katz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 3 12:57:15 PST 2019
ekatz created this revision.
ekatz added reviewers: chandlerc, lattner.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
ekatz added a parent revision: D69770: Add recoverable string parsing errors to APFloat.
Previously the supported special strings were:
inf, INFINITY, +Inf,
-inf, -INFINITY, -Inf,
nan, NaN,
-nan, -NaN,
Now it is extended to the following (which may be prefixed with a '-' or a '+' sign):
INF, INFINITY, inf, Inf, infinity, Infinity,
nan, NaN, NAN
The NaNs may be prefixed with 'q' or 'Q' for explicitly defining a Quiet NaN (implicit if no prefix exists), or 's' or 'S' for defining a Signaling NaN.
A payload for a NaN can be specified as a suffix. It may be a octal/decimal/hexadecimal number in parentheses or without.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69773
Files:
llvm/lib/Support/APFloat.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69773.227629.patch
Type: text/x-patch
Size: 4244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191103/8d7e5ada/attachment.bin>
More information about the llvm-commits
mailing list