diff options
| author | Michael Gottesman <mgottesman@apple.com> | 2013-06-01 00:44:29 +0000 |
|---|---|---|
| committer | Michael Gottesman <mgottesman@apple.com> | 2013-06-01 00:44:29 +0000 |
| commit | 40c36990e5d3073fd7ce3bb2a56604572b34e09f (patch) | |
| tree | fbbc41857f0b9edbf77c7c227bcb14530ecbe4a7 | |
| parent | f03343186287b60ce546fb660c723d6ca1573b4e (diff) | |
| download | bcm5719-llvm-40c36990e5d3073fd7ce3bb2a56604572b34e09f.tar.gz bcm5719-llvm-40c36990e5d3073fd7ce3bb2a56604572b34e09f.zip | |
Added method comments for getZero,getInf.
llvm-svn: 183064
| -rw-r--r-- | llvm/include/llvm/ADT/APFloat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h index 87d230bc182..7381a6d589f 100644 --- a/llvm/include/llvm/ADT/APFloat.h +++ b/llvm/include/llvm/ADT/APFloat.h @@ -203,9 +203,16 @@ public: /// \name Convenience "constructors" /// @{ + /// Factory for Positive and Negative Zero. + /// + /// \param Negative True iff the number should be negative. static APFloat getZero(const fltSemantics &Sem, bool Negative = false) { return APFloat(Sem, fcZero, Negative); } + + /// Factory for Positive and Negative Infinity. + /// + /// \param Negative True iff the number should be negative. static APFloat getInf(const fltSemantics &Sem, bool Negative = false) { return APFloat(Sem, fcInfinity, Negative); } |

