From 8a70f5815dda98d23f0bbf519532703886159cda Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Sat, 1 Jun 2013 00:44:29 +0000 Subject: [PATCH] Added method comments for getZero,getInf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183064 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APFloat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 87d230bc182..7381a6d589f 100644 --- a/include/llvm/ADT/APFloat.h +++ b/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); }