IDAPython 9.0
Loading...
Searching...
No Matches
fpvalue_t Class Reference
Inheritance diagram for fpvalue_t:

Public Member Functions

None clear (self)
 
bool __eq__ (self, 'fpvalue_t' r)
 
bool __ne__ (self, 'fpvalue_t' r)
 
bool __lt__ (self, 'fpvalue_t' r)
 
bool __gt__ (self, 'fpvalue_t' r)
 
bool __le__ (self, 'fpvalue_t' r)
 
bool __ge__ (self, 'fpvalue_t' r)
 
int compare (self, 'fpvalue_t' r)
 
'fpvalue_error_t' from_10bytes (self, 'void const *' fpval)
 
'fpvalue_error_t' to_10bytes (self, 'void *' fpval)
 
'fpvalue_error_t' from_12bytes (self, 'void const *' fpval)
 
'fpvalue_error_t' to_12bytes (self, 'void *' fpval)
 
None to_str (self, *args)
 
None from_sval (self, int x)
 
None from_int64 (self, 'int64' x)
 
None from_uint64 (self, 'uint64' x)
 
'fpvalue_error_t' to_sval (self, bool round=False)
 
'fpvalue_error_t' to_int64 (self, bool round=False)
 
'fpvalue_error_t' to_uint64 (self, bool round=False)
 
'fpvalue_error_t' fadd (self, 'fpvalue_t' y)
 
'fpvalue_error_t' fsub (self, 'fpvalue_t' y)
 
'fpvalue_error_t' fmul (self, 'fpvalue_t' y)
 
'fpvalue_error_t' fdiv (self, 'fpvalue_t' y)
 
'fpvalue_error_t' mul_pow2 (self, int power_of_2)
 
None eabs (self)
 
bool is_negative (self)
 
None negate (self)
 
'fpvalue_kind_t' get_kind (self)
 
 __init__ (self, *args)
 
'fpvalue_tcopy (self)
 
str __str__ (self)
 
'fpvalue_error_t' from_str (self, str p)
 
None assign (self, 'fpvalue_t' r)
 
 __iter__ (self)
 
 __getitem__ (self, i)
 
 __setitem__ (self, i, v)
 
 __repr__ (self)
 
'fpvalue_t__add__ (self, 'fpvalue_t' o)
 
'fpvalue_t__sub__ (self, 'fpvalue_t' o)
 
'fpvalue_t__mul__ (self, 'fpvalue_t' o)
 
'fpvalue_t__truediv__ (self, 'fpvalue_t' o)
 

Static Public Member Functions

'fpvalue_tnew_from_str (str p)
 

Static Public Attributes

str w
 

Protected Member Functions

None _get_bytes (self)
 
None _set_bytes (self, 'bytevec16_t const &' _in)
 
'double' _get_float (self)
 
None _set_float (self, 'double' v)
 
'wrapped_array_t< uint16, FPVAL_NWORDS >' _get_shorts (self)
 

Properties

 thisown
 
 bytes = property(_get_bytes, _set_bytes)
 
 shorts = property(_get_shorts)
 
 float = property(_get_float, _set_float)
 
 sval
 
 int64
 
 uint64
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
* args )

Member Function Documentation

◆ __add__()

'fpvalue_t' __add__ ( self,
'fpvalue_t' o )

◆ __eq__()

bool __eq__ ( self,
'fpvalue_t' r )

◆ __ge__()

bool __ge__ ( self,
'fpvalue_t' r )

◆ __getitem__()

__getitem__ ( self,
i )

◆ __gt__()

bool __gt__ ( self,
'fpvalue_t' r )

◆ __iter__()

__iter__ ( self)

◆ __le__()

bool __le__ ( self,
'fpvalue_t' r )

◆ __lt__()

bool __lt__ ( self,
'fpvalue_t' r )

◆ __mul__()

'fpvalue_t' __mul__ ( self,
'fpvalue_t' o )

◆ __ne__()

bool __ne__ ( self,
'fpvalue_t' r )

◆ __repr__()

__repr__ ( self)

◆ __setitem__()

__setitem__ ( self,
i,
v )

◆ __str__()

str __str__ ( self)

◆ __sub__()

'fpvalue_t' __sub__ ( self,
'fpvalue_t' o )

◆ __truediv__()

'fpvalue_t' __truediv__ ( self,
'fpvalue_t' o )

◆ _get_bytes()

None _get_bytes ( self)
protected

◆ _get_float()

'double' _get_float ( self)
protected

◆ _get_shorts()

'wrapped_array_t< uint16,FPVAL_NWORDS >' _get_shorts ( self)
protected

◆ _set_bytes()

None _set_bytes ( self,
'bytevec16_t const &' _in )
protected

◆ _set_float()

None _set_float ( self,
'double' v )
protected

◆ assign()

None assign ( self,
'fpvalue_t' r )

◆ clear()

None clear ( self)

◆ compare()

int compare ( self,
'fpvalue_t' r )

◆ copy()

'fpvalue_t' copy ( self)

◆ eabs()

None eabs ( self)
Calculate absolute value.

◆ fadd()

'fpvalue_error_t' fadd ( self,
'fpvalue_t' y )
Arithmetic operations.

◆ fdiv()

'fpvalue_error_t' fdiv ( self,
'fpvalue_t' y )

◆ fmul()

'fpvalue_error_t' fmul ( self,
'fpvalue_t' y )

◆ from_10bytes()

'fpvalue_error_t' from_10bytes ( self,
'void const *' fpval )
Conversions for 10-byte floating point values.

◆ from_12bytes()

'fpvalue_error_t' from_12bytes ( self,
'void const *' fpval )
Conversions for 12-byte floating point values.

◆ from_int64()

None from_int64 ( self,
'int64' x )

◆ from_str()

'fpvalue_error_t' from_str ( self,
str p )
Convert string to IEEE. 

◆ from_sval()

None from_sval ( self,
int x )
Convert integer to IEEE.

◆ from_uint64()

None from_uint64 ( self,
'uint64' x )

◆ fsub()

'fpvalue_error_t' fsub ( self,
'fpvalue_t' y )

◆ get_kind()

'fpvalue_kind_t' get_kind ( self)
Get value kind.

◆ is_negative()

bool is_negative ( self)
Is negative value?

◆ mul_pow2()

'fpvalue_error_t' mul_pow2 ( self,
int power_of_2 )
Multiply by a power of 2.

◆ negate()

None negate ( self)
Negate.

◆ new_from_str()

'fpvalue_t' new_from_str ( str p)
static

◆ to_10bytes()

'fpvalue_error_t' to_10bytes ( self,
'void *' fpval )

◆ to_12bytes()

'fpvalue_error_t' to_12bytes ( self,
'void *' fpval )

◆ to_int64()

'fpvalue_error_t' to_int64 ( self,
bool round = False )

◆ to_str()

None to_str ( self,
* args )
Convert IEEE to string. 

@param buf: the output buffer
@param bufsize: the size of the output buffer
@param mode: broken down into:
* low byte: number of digits after '.'
* second byte: FPNUM_LENGTH
* third byte: FPNUM_DIGITS

◆ to_sval()

'fpvalue_error_t' to_sval ( self,
bool round = False )
Convert IEEE to integer (+-0.5 if round)

◆ to_uint64()

'fpvalue_error_t' to_uint64 ( self,
bool round = False )

Member Data Documentation

◆ w

str w
static
Initial value:
= property(_ida_ieee.fpvalue_t_w_get, _ida_ieee.
fpvalue_t_w_set)

Property Documentation

◆ bytes

bytes = property(_get_bytes, _set_bytes)
static

◆ float

float = property(_get_float, _set_float)
static

◆ int64

int64
static
Initial value:
= property(lambda self: self.to_int64(), lambda self, v: self.
from_int64(v))

◆ shorts

shorts = property(_get_shorts)
static

◆ sval

sval
static
Initial value:
= property(lambda self: self.to_sval(), lambda self, v: self.
from_sval(v))

◆ thisown

thisown
static
Initial value:
= property(lambda x: x.this.own(), lambda x, v: x.this.own(v),
doc='The membership flag')

◆ uint64

uint64
static
Initial value:
= property(lambda self: self.to_uint64(), lambda self, v: self.
from_uint64(v))

The documentation for this class was generated from the following file: