#include <scfx_ieee.h>
Public メソッド | |
scfx_ieee_float () | |
scfx_ieee_float (float) | |
scfx_ieee_float (const scfx_ieee_float &) | |
scfx_ieee_float & | operator= (float) |
scfx_ieee_float & | operator= (const scfx_ieee_float &) |
operator float () const | |
unsigned int | negative () const |
void | negative (unsigned int) |
int | exponent () const |
void | exponent (int) |
unsigned int | mantissa () const |
void | mantissa (unsigned int) |
bool | is_zero () const |
bool | is_subnormal () const |
bool | is_normal () const |
bool | is_inf () const |
bool | is_nan () const |
void | set_inf () |
void | set_nan () |
Private 変数 | |
ieee_float | m_if |
scfx_ieee.h の 443 行で定義されています。
sc_dt::scfx_ieee_float::scfx_ieee_float | ( | ) | [inline] |
sc_dt::scfx_ieee_float::scfx_ieee_float | ( | float | f | ) | [inline] |
sc_dt::scfx_ieee_float::scfx_ieee_float | ( | const scfx_ieee_float & | a | ) | [inline] |
scfx_ieee_float & sc_dt::scfx_ieee_float::operator= | ( | float | f | ) | [inline] |
scfx_ieee_float & sc_dt::scfx_ieee_float::operator= | ( | const scfx_ieee_float & | a | ) | [inline] |
sc_dt::scfx_ieee_float::operator float | ( | ) | const [inline] |
unsigned int sc_dt::scfx_ieee_float::negative | ( | ) | const [inline] |
void sc_dt::scfx_ieee_float::negative | ( | unsigned int | a | ) | [inline] |
int sc_dt::scfx_ieee_float::exponent | ( | ) | const [inline] |
void sc_dt::scfx_ieee_float::exponent | ( | int | a | ) | [inline] |
unsigned int sc_dt::scfx_ieee_float::mantissa | ( | ) | const [inline] |
void sc_dt::scfx_ieee_float::mantissa | ( | unsigned int | a | ) | [inline] |
bool sc_dt::scfx_ieee_float::is_zero | ( | ) | const [inline] |
scfx_ieee.h の 568 行で定義されています。
00569 { 00570 return ( exponent() == SCFX_IEEE_FLOAT_E_MIN - 1 && mantissa() == 0U ); 00571 }
bool sc_dt::scfx_ieee_float::is_subnormal | ( | ) | const [inline] |
scfx_ieee.h の 575 行で定義されています。
00576 { 00577 return ( exponent() == SCFX_IEEE_FLOAT_E_MIN - 1 && mantissa() != 0U ); 00578 }
bool sc_dt::scfx_ieee_float::is_normal | ( | ) | const [inline] |
scfx_ieee.h の 582 行で定義されています。
00583 { 00584 return ( exponent() >= SCFX_IEEE_FLOAT_E_MIN && 00585 exponent() <= SCFX_IEEE_FLOAT_E_MAX ); 00586 }
bool sc_dt::scfx_ieee_float::is_inf | ( | ) | const [inline] |
scfx_ieee.h の 590 行で定義されています。
00591 { 00592 return ( exponent() == SCFX_IEEE_FLOAT_E_MAX + 1 && mantissa() == 0U ); 00593 }
bool sc_dt::scfx_ieee_float::is_nan | ( | ) | const [inline] |
scfx_ieee.h の 597 行で定義されています。
00598 { 00599 return ( exponent() == SCFX_IEEE_FLOAT_E_MAX + 1 && mantissa() != 0U ); 00600 }
void sc_dt::scfx_ieee_float::set_inf | ( | ) | [inline] |
scfx_ieee.h の 605 行で定義されています。
00606 { 00607 exponent( SCFX_IEEE_FLOAT_E_MAX + 1 ); 00608 mantissa( 0U ); 00609 }
void sc_dt::scfx_ieee_float::set_nan | ( | ) | [inline] |
scfx_ieee.h の 613 行で定義されています。
00614 { 00615 exponent( SCFX_IEEE_FLOAT_E_MAX + 1 ); 00616 mantissa( (unsigned int) -1 ); 00617 }
ieee_float sc_dt::scfx_ieee_float::m_if [private] |
scfx_ieee.h の 446 行で定義されています。