1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Add some documentation.

llvm-svn: 72622
This commit is contained in:
Mike Stump 2009-05-30 15:19:29 +00:00
parent 3d77d1fcfc
commit 72e70811c8

View File

@ -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);
}