IDAPython 9.0
Loading...
Searching...
No Matches
fpvalue_t Class Reference

Proxy of C++ fpvalue_t class.

Inheritance diagram for fpvalue_t:

Public Member Functions

"void" clear (self)
 clear(self)
 
"bool" __eq__ (self, "fpvalue_t" r)
 eq(self, r) -> bool
 
"bool" __ne__ (self, "fpvalue_t" r)
 ne(self, r) -> bool
 
"bool" __lt__ (self, "fpvalue_t" r)
 lt(self, r) -> bool
 
"bool" __gt__ (self, "fpvalue_t" r)
 gt(self, r) -> bool
 
"bool" __le__ (self, "fpvalue_t" r)
 le(self, r) -> bool
 
"bool" __ge__ (self, "fpvalue_t" r)
 ge(self, r) -> bool
 
"int" compare (self, "fpvalue_t" r)
 compare(self, r) -> int
 
"fpvalue_error_t" from_10bytes (self, "void const *" fpval)
 from_10bytes(self, fpval) -> fpvalue_error_t Conversions for 10-byte floating point values.
 
"fpvalue_error_t" to_10bytes (self, "void *" fpval)
 to_10bytes(self, fpval) -> fpvalue_error_t
 
"fpvalue_error_t" from_12bytes (self, "void const *" fpval)
 from_12bytes(self, fpval) -> fpvalue_error_t Conversions for 12-byte floating point values.
 
"fpvalue_error_t" to_12bytes (self, "void *" fpval)
 to_12bytes(self, fpval) -> fpvalue_error_t
 
"void" to_str (self, *args)
 to_str(self, mode) Convert IEEE to string.
 
"void" from_sval (self, "sval_t" x)
 from_sval(self, x) Convert integer to IEEE.
 
"void" from_int64 (self, "int64" x)
 from_int64(self, x)
 
"void" from_uint64 (self, "uint64" x)
 from_uint64(self, x)
 
"fpvalue_error_t" to_sval (self, "bool" round=False)
 to_sval(self, round=False) -> fpvalue_error_t Convert IEEE to integer (+-0.5 if round)
 
"fpvalue_error_t" to_int64 (self, "bool" round=False)
 to_int64(self, round=False) -> fpvalue_error_t
 
"fpvalue_error_t" to_uint64 (self, "bool" round=False)
 to_uint64(self, round=False) -> fpvalue_error_t
 
"fpvalue_error_t" fadd (self, "fpvalue_t" y)
 fadd(self, y) -> fpvalue_error_t Arithmetic operations.
 
"fpvalue_error_t" fsub (self, "fpvalue_t" y)
 fsub(self, y) -> fpvalue_error_t
 
"fpvalue_error_t" fmul (self, "fpvalue_t" y)
 fmul(self, y) -> fpvalue_error_t
 
"fpvalue_error_t" fdiv (self, "fpvalue_t" y)
 fdiv(self, y) -> fpvalue_error_t
 
"fpvalue_error_t" mul_pow2 (self, "int32" power_of_2)
 mul_pow2(self, power_of_2) -> fpvalue_error_t Multiply by a power of 2.
 
"void" eabs (self)
 eabs(self) Calculate absolute value.
 
"bool" is_negative (self)
 is_negative(self) -> bool Is negative value?
 
"void" negate (self)
 negate(self) Negate.
 
"fpvalue_kind_t" get_kind (self)
 get_kind(self) -> fpvalue_kind_t Get value kind.
 
 __init__ (self, *args)
 init(self) -> fpvalue_t init(self, _in) -> fpvalue_t
 
"fpvalue_t" copy (self)
 copy(self) -> fpvalue_t
 
"qstring" __str__ (self)
 str(self) -> qstring
 
"fpvalue_error_t" from_str (self, "char const *" p)
 from_str(self, p) -> fpvalue_error_t Convert string to IEEE.
 
"void" assign (self, "fpvalue_t" r)
 assign(self, r)
 
 __iter__ (self)
 
 __getitem__ (self, i)
 
 __setitem__ (self, i, v)
 
"fpvalue_t" __add__ (self, "fpvalue_t" o)
 add(self, o) -> fpvalue_t
 
"fpvalue_t" __sub__ (self, "fpvalue_t" o)
 sub(self, o) -> fpvalue_t
 
"fpvalue_t" __mul__ (self, "fpvalue_t" o)
 mul(self, o) -> fpvalue_t
 
"fpvalue_t" __truediv__ (self, "fpvalue_t" o)
 truediv(self, o) -> fpvalue_t
 

Static Public Attributes

str w = property(_ida_ieee.fpvalue_t_w_get, _ida_ieee.fpvalue_t_w_set, doc=)
 

Protected Member Functions

"void" _get_bytes (self)
 _get_bytes(self)
 
"void" _set_bytes (self, "bytevec16_t const &" _in)
 _set_bytes(self, _in)
 
"double" _get_float (self)
 _get_float(self) -> double
 
"void" _set_float (self, "double" v)
 _set_float(self, v)
 
"wrapped_array_t< uint16,FPVAL_NWORDS >" _get_shorts (self)
 _get_shorts(self) -> fpvalue_shorts_array_t
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
 bytes = property(_get_bytes, _set_bytes)
 
 shorts = property(_get_shorts)
 
 float = property(_get_float, _set_float)
 
 sval = property(lambda self: self.to_sval(), lambda self, v: self.from_sval(v))
 
 int64 = property(lambda self: self.to_int64(), lambda self, v: self.from_int64(v))
 
 uint64 = property(lambda self: self.to_uint64(), lambda self, v: self.from_uint64(v))
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
* args )
Parameters
inbytevec16_t const &

Member Function Documentation

◆ __add__()

"fpvalue_t" __add__ ( self,
"fpvalue_t" o )
Parameters
ofpvalue_t const &

◆ __eq__()

"bool" __eq__ ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ __ge__()

"bool" __ge__ ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ __getitem__()

__getitem__ ( self,
i )

◆ __gt__()

"bool" __gt__ ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ __iter__()

__iter__ ( self)

◆ __le__()

"bool" __le__ ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ __lt__()

"bool" __lt__ ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ __mul__()

"fpvalue_t" __mul__ ( self,
"fpvalue_t" o )
Parameters
ofpvalue_t const &

◆ __ne__()

"bool" __ne__ ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ __setitem__()

__setitem__ ( self,
i,
v )

◆ __str__()

"qstring" __str__ ( self)

◆ __sub__()

"fpvalue_t" __sub__ ( self,
"fpvalue_t" o )
Parameters
ofpvalue_t const &

◆ __truediv__()

"fpvalue_t" __truediv__ ( self,
"fpvalue_t" o )
Parameters
ofpvalue_t const &

◆ _get_bytes()

"void" _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()

"void" _set_bytes ( self,
"bytevec16_t const &" _in )
protected

Parameters

in: bytevec16_t const &

◆ _set_float()

"void" _set_float ( self,
"double" v )
protected

Parameters

v: double

◆ assign()

"void" assign ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ clear()

"void" clear ( self)

◆ compare()

"int" compare ( self,
"fpvalue_t" r )
Parameters
rfpvalue_t const &

◆ copy()

"fpvalue_t" copy ( self)

◆ eabs()

"void" eabs ( self)

◆ fadd()

"fpvalue_error_t" fadd ( self,
"fpvalue_t" y )
Parameters
y(C++: const fpvalue_t &) fpvalue_t const &

◆ fdiv()

"fpvalue_error_t" fdiv ( self,
"fpvalue_t" y )
Parameters
yfpvalue_t const &

◆ fmul()

"fpvalue_error_t" fmul ( self,
"fpvalue_t" y )
Parameters
yfpvalue_t const &

◆ from_10bytes()

"fpvalue_error_t" from_10bytes ( self,
"void const *" fpval )
Parameters
fpval(C++: const void *) void const *

◆ from_12bytes()

"fpvalue_error_t" from_12bytes ( self,
"void const *" fpval )
Parameters
fpval(C++: const void *) void const *

◆ from_int64()

"void" from_int64 ( self,
"int64" x )
Parameters
xint64

◆ from_str()

"fpvalue_error_t" from_str ( self,
"char const *" p )
Parameters
p_str(C++: const char **) pointer to pointer to string. it will advanced.

◆ from_sval()

"void" from_sval ( self,
"sval_t" x )
Parameters
x(C++: sval_t)

◆ from_uint64()

"void" from_uint64 ( self,
"uint64" x )
Parameters
xuint64

◆ fsub()

"fpvalue_error_t" fsub ( self,
"fpvalue_t" y )
Parameters
yfpvalue_t const &

◆ get_kind()

"fpvalue_kind_t" get_kind ( self)

◆ is_negative()

"bool" is_negative ( self)

◆ mul_pow2()

"fpvalue_error_t" mul_pow2 ( self,
"int32" power_of_2 )
Parameters
power_of_2(C++: int32)

◆ negate()

"void" negate ( self)

◆ to_10bytes()

"fpvalue_error_t" to_10bytes ( self,
"void *" fpval )
Parameters
fpvalvoid *

◆ to_12bytes()

"fpvalue_error_t" to_12bytes ( self,
"void *" fpval )
Parameters
fpvalvoid *

◆ to_int64()

"fpvalue_error_t" to_int64 ( self,
"bool" round = False )
Parameters
roundbool

◆ to_str()

"void" to_str ( self,
* args )
Parameters
mode(C++: uint) 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 )
Parameters
round(C++: bool)

◆ to_uint64()

"fpvalue_error_t" to_uint64 ( self,
"bool" round = False )
Parameters
roundbool

Member Data Documentation

◆ w

str w = property(_ida_ieee.fpvalue_t_w_get, _ida_ieee.fpvalue_t_w_set, doc=)
static

Property Documentation

◆ bytes

bytes = property(_get_bytes, _set_bytes)
static

◆ float

float = property(_get_float, _set_float)
static

◆ int64

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

◆ shorts

shorts = property(_get_shorts)
static

◆ sval

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

◆ thisown

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

◆ uint64

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

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