mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 15:51:40 +00:00
Expose more properties of llvm::fltSemantics
Summary: Adds accessor functions for all the fields in llvm::fltSemantics. This will be used in MergeFunctions to order two APFloats with different semanatics. Author: jrkoenig Reviewers: jfb Subscribers: dschuff, llvm-commits Differential revision: http://reviews.llvm.org/D12253 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
02cb3d6db7
commit
091d6ba275
@ -142,6 +142,9 @@ public:
|
||||
/// @}
|
||||
|
||||
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 {
|
||||
|
@ -841,6 +841,21 @@ APFloat::semanticsPrecision(const fltSemantics &semantics)
|
||||
{
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user