[llvm-commits] [llvm] r72622 - /llvm/trunk/include/llvm/ADT/APFloat.h

Mike Stump mrs at apple.com
Sat May 30 08:19:29 PDT 2009


Author: mrs
Date: Sat May 30 10:19:29 2009
New Revision: 72622

URL: http://llvm.org/viewvc/llvm-project?rev=72622&view=rev
Log:
Add some documentation.

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=72622&r1=72621&r2=72622&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Sat May 30 10:19:29 2009
@@ -188,8 +188,13 @@
     static APFloat getInf(const fltSemantics &Sem, bool Negative = false) {
       return APFloat(Sem, fcInfinity, Negative);
     }
+    /// getNaN - Factory for QNaN values.
+    ///
+    /// \param Negative - True iff the NaN generated should be negative.
+    /// \param type - The unspecified fill bits for creating the NaN, 0 by
+    /// default.
     static APFloat getNaN(const fltSemantics &Sem, bool Negative = false,
-                          long unsigned type=0) {
+                          unsigned type = 0) {
       return APFloat(Sem, fcNaN, Negative, type);
     }
 





More information about the llvm-commits mailing list