summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-30 15:19:29 +0000
committerMike Stump <mrs@apple.com>2009-05-30 15:19:29 +0000
commit5b6bb31eaead2ae7ecc866819081c374d18e2b6c (patch)
tree1c8570bf76d8cf2988dab27fb2745bc587343622 /llvm/include
parentb807c9c6220f7084d96eca1e4854bb44a1ce1bd7 (diff)
downloadbcm5719-llvm-5b6bb31eaead2ae7ecc866819081c374d18e2b6c.tar.gz
bcm5719-llvm-5b6bb31eaead2ae7ecc866819081c374d18e2b6c.zip
Add some documentation.
llvm-svn: 72622
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/APFloat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h
index aebc6e63ef3..1ff92418ee8 100644
--- a/llvm/include/llvm/ADT/APFloat.h
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud