[llvm-commits] [llvm] r51842 - /llvm/trunk/include/llvm/ADT/APFloat.h
Chris Lattner
sabre at nondot.org
Sun Jun 1 11:09:05 PDT 2008
Author: lattner
Date: Sun Jun 1 13:09:04 2008
New Revision: 51842
URL: http://llvm.org/viewvc/llvm-project?rev=51842&view=rev
Log:
add a predicate.
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=51842&r1=51841&r2=51842&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Sun Jun 1 13:09:04 2008
@@ -244,6 +244,7 @@
bool isZero() const { return category == fcZero; }
bool isNonZero() const { return category != fcZero; }
bool isNaN() const { return category == fcNaN; }
+ bool isInfinity() const { return category == fcInfinity; }
bool isNegative() const { return sign; }
bool isPosZero() const { return isZero() && !isNegative(); }
bool isNegZero() const { return isZero() && isNegative(); }
More information about the llvm-commits
mailing list