[llvm] r183064 - Added method comments for getZero,getInf.
Michael Gottesman
mgottesman at apple.com
Fri May 31 17:44:30 PDT 2013
Author: mgottesman
Date: Fri May 31 19:44:29 2013
New Revision: 183064
URL: http://llvm.org/viewvc/llvm-project?rev=183064&view=rev
Log:
Added method comments for getZero,getInf.
Modified:
llvm/trunk/include/llvm/ADT/APFloat.h
Modified: llvm/trunk/include/llvm/ADT/APFloat.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APFloat.h?rev=183064&r1=183063&r2=183064&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Fri May 31 19:44:29 2013
@@ -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);
}
More information about the llvm-commits
mailing list