diff options
author | Mike Stump <mrs@apple.com> | 2009-05-30 15:19:29 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-05-30 15:19:29 +0000 |
commit | 7d36d39e63451a09283225e6507dea730c1efa14 (patch) | |
tree | 836f2d2d1fdeb592d741949df162dd2f8363a2dd | |
parent | 46c403d815a310e79dea39d2f2b2ec78098b2518 (diff) |
Add some documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72622 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APFloat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index aebc6e63ef..1ff92418ee 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -188,8 +188,13 @@ namespace llvm { 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); } |