[PATCH] D12253: Expose more properties of llvm::fltSemantics
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 19:33:44 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL245999: Expose more properties of llvm::fltSemantics (authored by jfb).
Changed prior to commit:
http://reviews.llvm.org/D12253?vs=32878&id=33167#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12253
Files:
llvm/trunk/include/llvm/ADT/APFloat.h
llvm/trunk/lib/Support/APFloat.cpp
Index: llvm/trunk/include/llvm/ADT/APFloat.h
===================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h
+++ llvm/trunk/include/llvm/ADT/APFloat.h
@@ -142,6 +142,9 @@
/// @}
static unsigned int semanticsPrecision(const fltSemantics &);
+ static ExponentType semanticsMinExponent(const fltSemantics &);
+ static ExponentType semanticsMaxExponent(const fltSemantics &);
+ static unsigned int semanticsSizeInBits(const fltSemantics &);
/// IEEE-754R 5.11: Floating Point Comparison Relations.
enum cmpResult {
Index: llvm/trunk/lib/Support/APFloat.cpp
===================================================================
--- llvm/trunk/lib/Support/APFloat.cpp
+++ llvm/trunk/lib/Support/APFloat.cpp
@@ -841,6 +841,21 @@
{
return semantics.precision;
}
+APFloat::ExponentType
+APFloat::semanticsMaxExponent(const fltSemantics &semantics)
+{
+ return semantics.maxExponent;
+}
+APFloat::ExponentType
+APFloat::semanticsMinExponent(const fltSemantics &semantics)
+{
+ return semantics.minExponent;
+}
+unsigned int
+APFloat::semanticsSizeInBits(const fltSemantics &semantics)
+{
+ return semantics.sizeInBits;
+}
const integerPart *
APFloat::significandParts() const
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12253.33167.patch
Type: text/x-patch
Size: 1241 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150826/78f5d7fa/attachment.bin>
More information about the llvm-commits
mailing list