[all-commits] [llvm/llvm-project] 68122b: [APFloat] Extend conversion from special strings

Ehud Katz via All-commits all-commits at lists.llvm.org
Tue Jan 21 10:22:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 68122b5826b56f547e8fbae7cf4d455afeda8400
      https://github.com/llvm/llvm-project/commit/68122b5826b56f547e8fbae7cf4d455afeda8400
  Author: Ehud Katz <ehudkatz at gmail.com>
  Date:   2020-01-21 (Tue, 21 Jan 2020)

  Changed paths:
    M llvm/lib/Support/APFloat.cpp
    M llvm/unittests/ADT/APFloatTest.cpp

  Log Message:
  -----------
  [APFloat] Extend conversion from special strings

Add support for converting Signaling NaN, and a NaN Payload from string.

The NaNs (the string "nan" or "NaN") may be prefixed with '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.

Differential Revision: https://reviews.llvm.org/D69773




More information about the All-commits mailing list