mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-4285 Compressed SLEIGH
This commit is contained in:
parent
b380fd5fa6
commit
8fbd171cdf
207 changed files with 15233 additions and 6055 deletions
|
@ -19,7 +19,7 @@
|
|||
#ifndef __FLOAT_HH__
|
||||
#define __FLOAT_HH__
|
||||
|
||||
#include "xml.hh"
|
||||
#include "error.hh"
|
||||
|
||||
namespace ghidra {
|
||||
|
||||
|
@ -61,7 +61,6 @@ private:
|
|||
uintb getNaNEncoding(bool sgn) const; ///< Get an encoded NaN value
|
||||
void calcPrecision(void); ///< Calculate the decimal precision of this format
|
||||
public:
|
||||
FloatFormat(void) {} ///< Construct for use with restoreXml()
|
||||
FloatFormat(int4 sz); ///< Construct default IEEE 754 standard settings
|
||||
int4 getSize(void) const { return size; } ///< Get the size of the encoding in bytes
|
||||
double getHostFloat(uintb encoding,floatclass *type) const; ///< Convert an encoding into host's double
|
||||
|
@ -93,9 +92,6 @@ public:
|
|||
uintb opRound(uintb a) const; ///< Round
|
||||
uintb opInt2Float(uintb a,int4 sizein) const; ///< Convert integer to floating-point
|
||||
uintb opFloat2Float(uintb a,const FloatFormat &outformat) const; ///< Convert between floating-point precisions
|
||||
|
||||
void saveXml(ostream &s) const; ///< Save the format to an XML stream
|
||||
void restoreXml(const Element *el); ///< Restore the format from XML
|
||||
};
|
||||
|
||||
} // End namespace ghidra
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue