summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-06-01 00:44:29 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-06-01 00:44:29 +0000
commit40c36990e5d3073fd7ce3bb2a56604572b34e09f (patch)
treefbbc41857f0b9edbf77c7c227bcb14530ecbe4a7
parentf03343186287b60ce546fb660c723d6ca1573b4e (diff)
downloadbcm5719-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.h7
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);
}
OpenPOWER on IntegriCloud