SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_dt::scfx_ieee_float Class Reference

Convenient wrapper to union ieee_float. More...

#include <sysc/datatypes/fx/scfx_ieee.h>

Public Member Functions

 scfx_ieee_float ()
 
 scfx_ieee_float (float)
 
 scfx_ieee_float (const scfx_ieee_float &)
 
scfx_ieee_floatoperator= (float)
 
scfx_ieee_floatoperator= (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 ()
 

Detailed Description

Convenient wrapper to union ieee_float.

Definition at line 460 of file scfx_ieee.h.

Constructor & Destructor Documentation

◆ scfx_ieee_float() [1/3]

sc_dt::scfx_ieee_float::scfx_ieee_float ( )
inline

Definition at line 498 of file scfx_ieee.h.

◆ scfx_ieee_float() [2/3]

sc_dt::scfx_ieee_float::scfx_ieee_float ( float  f)
inline

Definition at line 504 of file scfx_ieee.h.

◆ scfx_ieee_float() [3/3]

sc_dt::scfx_ieee_float::scfx_ieee_float ( const scfx_ieee_float a)
inline

Definition at line 510 of file scfx_ieee.h.

Member Function Documentation

◆ exponent() [1/2]

int sc_dt::scfx_ieee_float::exponent ( ) const
inline

Definition at line 556 of file scfx_ieee.h.

◆ exponent() [2/2]

void sc_dt::scfx_ieee_float::exponent ( int  a)
inline

Definition at line 563 of file scfx_ieee.h.

◆ is_inf()

bool sc_dt::scfx_ieee_float::is_inf ( ) const
inline

Definition at line 608 of file scfx_ieee.h.

◆ is_nan()

bool sc_dt::scfx_ieee_float::is_nan ( ) const
inline

Definition at line 615 of file scfx_ieee.h.

◆ is_normal()

bool sc_dt::scfx_ieee_float::is_normal ( ) const
inline

Definition at line 600 of file scfx_ieee.h.

◆ is_subnormal()

bool sc_dt::scfx_ieee_float::is_subnormal ( ) const
inline

Definition at line 593 of file scfx_ieee.h.

◆ is_zero()

bool sc_dt::scfx_ieee_float::is_zero ( ) const
inline

Definition at line 586 of file scfx_ieee.h.

◆ mantissa() [1/2]

unsigned int sc_dt::scfx_ieee_float::mantissa ( ) const
inline

Definition at line 571 of file scfx_ieee.h.

◆ mantissa() [2/2]

void sc_dt::scfx_ieee_float::mantissa ( unsigned int  a)
inline

Definition at line 578 of file scfx_ieee.h.

◆ negative() [1/2]

unsigned int sc_dt::scfx_ieee_float::negative ( ) const
inline

Definition at line 542 of file scfx_ieee.h.

◆ negative() [2/2]

void sc_dt::scfx_ieee_float::negative ( unsigned int  a)
inline

Definition at line 549 of file scfx_ieee.h.

◆ operator float()

sc_dt::scfx_ieee_float::operator float ( ) const
inline

Definition at line 534 of file scfx_ieee.h.

◆ operator=() [1/2]

scfx_ieee_float & sc_dt::scfx_ieee_float::operator= ( float  f)
inline

Definition at line 518 of file scfx_ieee.h.

◆ operator=() [2/2]

scfx_ieee_float & sc_dt::scfx_ieee_float::operator= ( const scfx_ieee_float a)
inline

Definition at line 526 of file scfx_ieee.h.

◆ set_inf()

void sc_dt::scfx_ieee_float::set_inf ( )
inline

Definition at line 623 of file scfx_ieee.h.

◆ set_nan()

void sc_dt::scfx_ieee_float::set_nan ( )
inline

Definition at line 631 of file scfx_ieee.h.


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