|
IDA C++ SDK 9.2
|
Processor-independent representation of a floating point value. More...
#include <ieee.h>
Public Member Functions | |
| void | clear (void) |
| DECLARE_COMPARISONS (fpvalue_t) | |
| fpvalue_error_t | from_half (uint16 fpval) |
| Convert to the processor-independent representation. | |
| fpvalue_error_t | from_float (float fpval) |
| fpvalue_error_t | from_double (double fpval) |
| fpvalue_error_t | to_half (uint16 *fpval) const |
| Convert from the processor-independent representation. | |
| fpvalue_error_t | to_float (float *fpval) const |
| fpvalue_error_t | to_double (double *fpval) const |
| fpvalue_error_t | from_10bytes (const void *fpval) |
| Conversions for 10-byte floating point values. | |
| fpvalue_error_t | to_10bytes (void *fpval) const |
| fpvalue_error_t | from_12bytes (const void *fpval) |
| Conversions for 12-byte floating point values. | |
| fpvalue_error_t | to_12bytes (void *fpval) const |
| fpvalue_error_t | from_str (const char **p_str) |
| Convert string to IEEE. | |
| void | to_str (char *buf, size_t bufsize, uint mode) const |
| Convert IEEE to string. | |
| void | from_sval (sval_t x) |
| Convert integer to IEEE. | |
| void | from_int64 (int64 x) |
| void | from_uint64 (uint64 x) |
| fpvalue_error_t | to_sval (sval_t *out, bool round=false) const |
| Convert IEEE to integer (+-0.5 if round) | |
| fpvalue_error_t | to_int64 (int64 *out, bool round=false) const |
| fpvalue_error_t | to_uint64 (uint64 *out, bool round=false) const |
| fpvalue_error_t | fadd (const fpvalue_t &y) |
| Arithmetic operations. | |
| fpvalue_error_t | fsub (const fpvalue_t &y) |
| fpvalue_error_t | fmul (const fpvalue_t &y) |
| fpvalue_error_t | fdiv (const fpvalue_t &y) |
| fpvalue_error_t | mul_pow2 (int32 power_of_2) |
| Multiply by a power of 2. | |
| void | eabs () |
| Calculate absolute value. | |
| bool | is_negative () const |
| Is negative value? | |
| void | negate () |
| Negate. | |
| fpvalue_kind_t | get_kind () const |
| Get value kind. | |
Public Attributes | |
| uint16 | w [FPVAL_NWORDS] |
Processor-independent representation of a floating point value.
IDA uses this structure to store and manipulate floating point values.
|
inline |
|
inline |
Convert to the processor-independent representation.
|
inline |
|
inline |
|
inline |
Convert from the processor-independent representation.
|
inline |
|
inline |
|
inline |
Conversions for 10-byte floating point values.
|
inline |
|
inline |
Conversions for 12-byte floating point values.
|
inline |
|
inline |
Convert string to IEEE.
| p_str | pointer to pointer to string. it will advanced. |
Convert IEEE to string.
| buf | the output buffer |
| bufsize | the size of the output buffer |
| mode | broken down into:
|
|
inline |
Convert IEEE to integer (+-0.5 if round)
|
inline |
|
inline |
|
inline |
Arithmetic operations.
|
inline |
|
inline |
|
inline |
|
inline |
Multiply by a power of 2.
|
inline |
Calculate absolute value.
|
inline |
Is negative value?
|
inline |
Negate.
|
inline |
Get value kind.
| uint16 fpvalue_t::w[FPVAL_NWORDS] |