summaryrefslogtreecommitdiff
path: root/include/llvm/ADT
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
commit8a70f5815dda98d23f0bbf519532703886159cda (patch)
tree2048840f03e3caf45ec19b356cfce6d185fc27f5 /include/llvm/ADT
parent7f88a3b20dbaee2a9b265f60a7bc19d2dc6a8f3e (diff)
downloadllvm-8a70f5815dda98d23f0bbf519532703886159cda.tar.gz
llvm-8a70f5815dda98d23f0bbf519532703886159cda.tar.bz2
llvm-8a70f5815dda98d23f0bbf519532703886159cda.tar.xz
Added method comments for getZero,getInf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/APFloat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h
index 87d230bc18..7381a6d589 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);
}