Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
float.h File Reference
#include "fpbits.h"
#include "hppa.h"
#include "fpu.h"

Go to the source code of this file.

Data Structures

struct  quad_floating_point
 
struct  dint
 
struct  dblwd
 
struct  quadwd
 

Macros

#define LOCORE
 
#define Sall(object)   (object)
 
#define Ssign(object)   Bitfield_extract( 0, 1,object)
 
#define Ssignedsign(object)   Bitfield_signed_extract( 0, 1,object)
 
#define Sexponent(object)   Bitfield_extract( 1, 8,object)
 
#define Smantissa(object)   Bitfield_mask( 9, 23,object)
 
#define Ssignaling(object)   Bitfield_extract( 9, 1,object)
 
#define Ssignalingnan(object)   Bitfield_extract( 1, 9,object)
 
#define Shigh2mantissa(object)   Bitfield_extract( 9, 2,object)
 
#define Sexponentmantissa(object)   Bitfield_mask( 1, 31,object)
 
#define Ssignexponent(object)   Bitfield_extract( 0, 9,object)
 
#define Shidden(object)   Bitfield_extract( 8, 1,object)
 
#define Shiddenoverflow(object)   Bitfield_extract( 7, 1,object)
 
#define Shiddenhigh7mantissa(object)   Bitfield_extract( 8, 8,object)
 
#define Shiddenhigh3mantissa(object)   Bitfield_extract( 8, 4,object)
 
#define Slow(object)   Bitfield_mask( 31, 1,object)
 
#define Slow4(object)   Bitfield_mask( 28, 4,object)
 
#define Slow31(object)   Bitfield_mask( 1, 31,object)
 
#define Shigh31(object)   Bitfield_extract( 0, 31,object)
 
#define Ssignedhigh31(object)   Bitfield_signed_extract( 0, 31,object)
 
#define Shigh4(object)   Bitfield_extract( 0, 4,object)
 
#define Sbit24(object)   Bitfield_extract( 24, 1,object)
 
#define Sbit28(object)   Bitfield_extract( 28, 1,object)
 
#define Sbit29(object)   Bitfield_extract( 29, 1,object)
 
#define Sbit30(object)   Bitfield_extract( 30, 1,object)
 
#define Sbit31(object)   Bitfield_mask( 31, 1,object)
 
#define Deposit_ssign(object, value)   Bitfield_deposit(value,0,1,object)
 
#define Deposit_sexponent(object, value)   Bitfield_deposit(value,1,8,object)
 
#define Deposit_smantissa(object, value)   Bitfield_deposit(value,9,23,object)
 
#define Deposit_shigh2mantissa(object, value)   Bitfield_deposit(value,9,2,object)
 
#define Deposit_sexponentmantissa(object, value)   Bitfield_deposit(value,1,31,object)
 
#define Deposit_ssignexponent(object, value)   Bitfield_deposit(value,0,9,object)
 
#define Deposit_slow(object, value)   Bitfield_deposit(value,31,1,object)
 
#define Deposit_shigh4(object, value)   Bitfield_deposit(value,0,4,object)
 
#define Is_ssign(object)   Bitfield_mask( 0, 1,object)
 
#define Is_ssignaling(object)   Bitfield_mask( 9, 1,object)
 
#define Is_shidden(object)   Bitfield_mask( 8, 1,object)
 
#define Is_shiddenoverflow(object)   Bitfield_mask( 7, 1,object)
 
#define Is_slow(object)   Bitfield_mask( 31, 1,object)
 
#define Is_sbit24(object)   Bitfield_mask( 24, 1,object)
 
#define Is_sbit28(object)   Bitfield_mask( 28, 1,object)
 
#define Is_sbit29(object)   Bitfield_mask( 29, 1,object)
 
#define Is_sbit30(object)   Bitfield_mask( 30, 1,object)
 
#define Is_sbit31(object)   Bitfield_mask( 31, 1,object)
 
#define Dallp1(object)   (object)
 
#define Dsign(object)   Bitfield_extract( 0, 1,object)
 
#define Dsignedsign(object)   Bitfield_signed_extract( 0, 1,object)
 
#define Dexponent(object)   Bitfield_extract( 1, 11,object)
 
#define Dmantissap1(object)   Bitfield_mask( 12, 20,object)
 
#define Dsignaling(object)   Bitfield_extract( 12, 1,object)
 
#define Dsignalingnan(object)   Bitfield_extract( 1, 12,object)
 
#define Dhigh2mantissa(object)   Bitfield_extract( 12, 2,object)
 
#define Dexponentmantissap1(object)   Bitfield_mask( 1, 31,object)
 
#define Dsignexponent(object)   Bitfield_extract( 0, 12,object)
 
#define Dhidden(object)   Bitfield_extract( 11, 1,object)
 
#define Dhiddenoverflow(object)   Bitfield_extract( 10, 1,object)
 
#define Dhiddenhigh7mantissa(object)   Bitfield_extract( 11, 8,object)
 
#define Dhiddenhigh3mantissa(object)   Bitfield_extract( 11, 4,object)
 
#define Dlowp1(object)   Bitfield_mask( 31, 1,object)
 
#define Dlow31p1(object)   Bitfield_mask( 1, 31,object)
 
#define Dhighp1(object)   Bitfield_extract( 0, 1,object)
 
#define Dhigh4p1(object)   Bitfield_extract( 0, 4,object)
 
#define Dhigh31p1(object)   Bitfield_extract( 0, 31,object)
 
#define Dsignedhigh31p1(object)   Bitfield_signed_extract( 0, 31,object)
 
#define Dbit3p1(object)   Bitfield_extract( 3, 1,object)
 
#define Deposit_dsign(object, value)   Bitfield_deposit(value,0,1,object)
 
#define Deposit_dexponent(object, value)   Bitfield_deposit(value,1,11,object)
 
#define Deposit_dmantissap1(object, value)   Bitfield_deposit(value,12,20,object)
 
#define Deposit_dhigh2mantissa(object, value)   Bitfield_deposit(value,12,2,object)
 
#define Deposit_dexponentmantissap1(object, value)   Bitfield_deposit(value,1,31,object)
 
#define Deposit_dsignexponent(object, value)   Bitfield_deposit(value,0,12,object)
 
#define Deposit_dlowp1(object, value)   Bitfield_deposit(value,31,1,object)
 
#define Deposit_dhigh4p1(object, value)   Bitfield_deposit(value,0,4,object)
 
#define Is_dsign(object)   Bitfield_mask( 0, 1,object)
 
#define Is_dsignaling(object)   Bitfield_mask( 12, 1,object)
 
#define Is_dhidden(object)   Bitfield_mask( 11, 1,object)
 
#define Is_dhiddenoverflow(object)   Bitfield_mask( 10, 1,object)
 
#define Is_dlowp1(object)   Bitfield_mask( 31, 1,object)
 
#define Is_dhighp1(object)   Bitfield_mask( 0, 1,object)
 
#define Is_dbit3p1(object)   Bitfield_mask( 3, 1,object)
 
#define Dallp2(object)   (object)
 
#define Dmantissap2(object)   (object)
 
#define Dlowp2(object)   Bitfield_mask( 31, 1,object)
 
#define Dlow4p2(object)   Bitfield_mask( 28, 4,object)
 
#define Dlow31p2(object)   Bitfield_mask( 1, 31,object)
 
#define Dhighp2(object)   Bitfield_extract( 0, 1,object)
 
#define Dhigh31p2(object)   Bitfield_extract( 0, 31,object)
 
#define Dbit2p2(object)   Bitfield_extract( 2, 1,object)
 
#define Dbit3p2(object)   Bitfield_extract( 3, 1,object)
 
#define Dbit21p2(object)   Bitfield_extract( 21, 1,object)
 
#define Dbit28p2(object)   Bitfield_extract( 28, 1,object)
 
#define Dbit29p2(object)   Bitfield_extract( 29, 1,object)
 
#define Dbit30p2(object)   Bitfield_extract( 30, 1,object)
 
#define Dbit31p2(object)   Bitfield_mask( 31, 1,object)
 
#define Deposit_dlowp2(object, value)   Bitfield_deposit(value,31,1,object)
 
#define Is_dlowp2(object)   Bitfield_mask( 31, 1,object)
 
#define Is_dhighp2(object)   Bitfield_mask( 0, 1,object)
 
#define Is_dbit2p2(object)   Bitfield_mask( 2, 1,object)
 
#define Is_dbit3p2(object)   Bitfield_mask( 3, 1,object)
 
#define Is_dbit21p2(object)   Bitfield_mask( 21, 1,object)
 
#define Is_dbit28p2(object)   Bitfield_mask( 28, 1,object)
 
#define Is_dbit29p2(object)   Bitfield_mask( 29, 1,object)
 
#define Is_dbit30p2(object)   Bitfield_mask( 30, 1,object)
 
#define Is_dbit31p2(object)   Bitfield_mask( 31, 1,object)
 
#define Extall(object)   (object)
 
#define Extsign(object)   Bitfield_extract( 0, 1,object)
 
#define Exthigh31(object)   Bitfield_extract( 0, 31,object)
 
#define Extlow31(object)   Bitfield_extract( 1, 31,object)
 
#define Extlow(object)   Bitfield_extract( 31, 1,object)
 
#define Sextallp1(object)   (object)
 
#define Sextallp2(object)   (object)
 
#define Sextlowp1(object)   Bitfield_extract( 31, 1,object)
 
#define Sexthighp2(object)   Bitfield_extract( 0, 1,object)
 
#define Sextlow31p2(object)   Bitfield_extract( 1, 31,object)
 
#define Sexthiddenoverflow(object)   Bitfield_extract( 4, 1,object)
 
#define Is_sexthiddenoverflow(object)   Bitfield_mask( 4, 1,object)
 
#define Dextallp1(object)   (object)
 
#define Dextallp2(object)   (object)
 
#define Dextallp3(object)   (object)
 
#define Dextallp4(object)   (object)
 
#define Dextlowp2(object)   Bitfield_extract( 31, 1,object)
 
#define Dexthighp3(object)   Bitfield_extract( 0, 1,object)
 
#define Dextlow31p3(object)   Bitfield_extract( 1, 31,object)
 
#define Dexthiddenoverflow(object)   Bitfield_extract( 10, 1,object)
 
#define Is_dexthiddenoverflow(object)   Bitfield_mask( 10, 1,object)
 
#define Deposit_dextlowp4(object, value)   Bitfield_deposit(value,31,1,object)
 
#define SGL_BITLENGTH   32
 
#define SGL_EMAX   127
 
#define SGL_EMIN   (-126)
 
#define SGL_BIAS   127
 
#define SGL_WRAP   192
 
#define SGL_INFINITY_EXPONENT   (SGL_EMAX+SGL_BIAS+1)
 
#define SGL_THRESHOLD   32
 
#define SGL_EXP_LENGTH   8
 
#define SGL_P   24
 
#define DBL_BITLENGTH   64
 
#define DBL_EMAX   1023
 
#define DBL_EMIN   (-1022)
 
#define DBL_BIAS   1023
 
#define DBL_WRAP   1536
 
#define DBL_INFINITY_EXPONENT   (DBL_EMAX+DBL_BIAS+1)
 
#define DBL_THRESHOLD   64
 
#define DBL_EXP_LENGTH   11
 
#define DBL_P   53
 
#define QUAD_BITLENGTH   128
 
#define QUAD_EMAX   16383
 
#define QUAD_EMIN   (-16382)
 
#define QUAD_BIAS   16383
 
#define QUAD_WRAP   24576
 
#define QUAD_INFINITY_EXPONENT   (QUAD_EMAX+QUAD_BIAS+1)
 
#define QUAD_P   113
 
#define FALSE   0
 
#define TRUE   (!FALSE)
 
#define NOT   !
 
#define XOR   ^
 
#define NULL   0
 
#define NIL   0
 
#define SGL   0
 
#define DBL   1
 
#define BADFMT   2
 
#define QUAD   3
 
#define Cbit(object)   Bitfield_extract( 5, 1,object)
 
#define Tbit(object)   Bitfield_extract( 25, 1,object)
 
#define Roundingmode(object)   Bitfield_extract( 21, 2,object)
 
#define Invalidtrap(object)   Bitfield_extract( 27, 1,object)
 
#define Divisionbyzerotrap(object)   Bitfield_extract( 28, 1,object)
 
#define Overflowtrap(object)   Bitfield_extract( 29, 1,object)
 
#define Underflowtrap(object)   Bitfield_extract( 30, 1,object)
 
#define Inexacttrap(object)   Bitfield_extract( 31, 1,object)
 
#define Invalidflag(object)   Bitfield_extract( 0, 1,object)
 
#define Divisionbyzeroflag(object)   Bitfield_extract( 1, 1,object)
 
#define Overflowflag(object)   Bitfield_extract( 2, 1,object)
 
#define Underflowflag(object)   Bitfield_extract( 3, 1,object)
 
#define Inexactflag(object)   Bitfield_extract( 4, 1,object)
 
#define Allflags(object)   Bitfield_extract( 0, 5,object)
 
#define ROUNDNEAREST   0
 
#define ROUNDZERO   1
 
#define ROUNDPLUS   2
 
#define ROUNDMINUS   3
 
#define NOEXCEPTION   0x0
 
#define INVALIDEXCEPTION   0x20
 
#define DIVISIONBYZEROEXCEPTION   0x10
 
#define OVERFLOWEXCEPTION   0x08
 
#define UNDERFLOWEXCEPTION   0x04
 
#define INEXACTEXCEPTION   0x02
 
#define UNIMPLEMENTEDEXCEPTION   0x01
 
#define OPC_2E_INVALIDEXCEPTION   0x30
 
#define OPC_2E_OVERFLOWEXCEPTION   0x18
 
#define OPC_2E_UNDERFLOWEXCEPTION   0x0c
 
#define OPC_2E_INEXACTEXCEPTION   0x12
 
#define Allexception(object)   (object)
 
#define Exceptiontype(object)   Bitfield_extract( 0, 6,object)
 
#define Instructionfield(object)   Bitfield_mask( 6,26,object)
 
#define Parmfield(object)   Bitfield_extract( 23, 3,object)
 
#define Rabit(object)   Bitfield_extract( 24, 1,object)
 
#define Ibit(object)   Bitfield_extract( 25, 1,object)
 
#define Set_exceptiontype(object, value)   Bitfield_deposit(value, 0, 6,object)
 
#define Set_parmfield(object, value)   Bitfield_deposit(value, 23, 3,object)
 
#define Set_exceptiontype_and_instr_field(exception, instruction, object)   object = exception << 26 | instruction
 
#define Allexception(object)   (object)
 
#define Greaterthanbit(object)   Bitfield_extract( 27, 1,object)
 
#define Lessthanbit(object)   Bitfield_extract( 28, 1,object)
 
#define Equalbit(object)   Bitfield_extract( 29, 1,object)
 
#define Unorderedbit(object)   Bitfield_extract( 30, 1,object)
 
#define Exceptionbit(object)   Bitfield_extract( 31, 1,object)
 
#define Fpustatus_register   (*status)
 
#define Rounding_mode()   Roundingmode(Fpustatus_register)
 
#define Is_rounding_mode(rmode)   (Roundingmode(Fpustatus_register) == rmode)
 
#define Set_rounding_mode(value)   Bitfield_deposit(value,21,2,Fpustatus_register)
 
#define Is_invalidtrap_enabled()   Invalidtrap(Fpustatus_register)
 
#define Is_divisionbyzerotrap_enabled()   Divisionbyzerotrap(Fpustatus_register)
 
#define Is_overflowtrap_enabled()   Overflowtrap(Fpustatus_register)
 
#define Is_underflowtrap_enabled()   Underflowtrap(Fpustatus_register)
 
#define Is_inexacttrap_enabled()   Inexacttrap(Fpustatus_register)
 
#define Set_invalidflag()   Bitfield_deposit(1,0,1,Fpustatus_register)
 
#define Set_divisionbyzeroflag()   Bitfield_deposit(1,1,1,Fpustatus_register)
 
#define Set_overflowflag()   Bitfield_deposit(1,2,1,Fpustatus_register)
 
#define Set_underflowflag()   Bitfield_deposit(1,3,1,Fpustatus_register)
 
#define Set_inexactflag()   Bitfield_deposit(1,4,1,Fpustatus_register)
 
#define Clear_all_flags()   Bitfield_deposit(0,0,5,Fpustatus_register)
 
#define Set_tbit()   Bitfield_deposit(1,25,1,Fpustatus_register)
 
#define Clear_tbit()   Bitfield_deposit(0,25,1,Fpustatus_register)
 
#define Is_tbit_set()   Tbit(Fpustatus_register)
 
#define Is_cbit_set()   Cbit(Fpustatus_register)
 
#define Set_status_cbit(value)   Bitfield_deposit(value,5,1,Fpustatus_register)
 
#define Unordered(cond)   Unorderedbit(cond)
 
#define Equal(cond)   Equalbit(cond)
 
#define Lessthan(cond)   Lessthanbit(cond)
 
#define Greaterthan(cond)   Greaterthanbit(cond)
 
#define Exception(cond)   Exceptionbit(cond)
 
#define Ext_isone_sign(extent)   (Extsign(extent))
 
#define Ext_isnotzero(extent)   (Extall(extent))
 
#define Ext_isnotzero_lower(extent)   (Extlow31(extent))
 
#define Ext_leftshiftby1(extent)   Extall(extent) <<= 1
 
#define Ext_negate(extent)   (int )Extall(extent) = 0 - (int )Extall(extent)
 
#define Ext_setone_low(extent)   Bitfield_deposit(1,31,1,extent)
 
#define Ext_setzero(extent)   Extall(extent) = 0
 
#define NONE   0
 
#define UNDEFFPINST   1
 
#define FTEST   (1<<2) | 0
 
#define FCPY   (2<<2) | 0
 
#define FABS   (3<<2) | 0
 
#define FSQRT   (4<<2) | 0
 
#define FRND   (5<<2) | 0
 
#define FCNVFF   (0<<2) | 1
 
#define FCNVXF   (1<<2) | 1
 
#define FCNVFX   (2<<2) | 1
 
#define FCNVFXT   (3<<2) | 1
 
#define FCMP   (0<<2) | 2
 
#define FADD   (0<<2) | 3
 
#define FSUB   (1<<2) | 3
 
#define FMPY   (2<<2) | 3
 
#define FDIV   (3<<2) | 3
 
#define FREM   (4<<2) | 3
 

Typedefs

typedef int sgl_integer
 
typedef struct quadwd quad_integer
 
typedef unsigned int sgl_floating_point
 
typedef struct dblwd dbl_floating_point
 
typedef struct dint dbl_integer
 
typedef struct dblwd dbl_unsigned
 
typedef int boolean
 
typedef int FORMAT
 
typedef int VOID
 
typedef int operation
 

Macro Definition Documentation

#define Allexception (   object)    (object)

Definition at line 487 of file float.h.

#define Allexception (   object)    (object)

Definition at line 487 of file float.h.

#define Allflags (   object)    Bitfield_extract( 0, 5,object)

Definition at line 436 of file float.h.

#define BADFMT   2

Definition at line 406 of file float.h.

#define Cbit (   object)    Bitfield_extract( 5, 1,object)

Definition at line 423 of file float.h.

#define Clear_all_flags ( )    Bitfield_deposit(0,0,5,Fpustatus_register)

Definition at line 522 of file float.h.

#define Clear_tbit ( )    Bitfield_deposit(0,25,1,Fpustatus_register)

Definition at line 526 of file float.h.

#define Dallp1 (   object)    (object)

Definition at line 118 of file float.h.

#define Dallp2 (   object)    (object)

Definition at line 158 of file float.h.

#define Dbit21p2 (   object)    Bitfield_extract( 21, 1,object)

Definition at line 167 of file float.h.

#define Dbit28p2 (   object)    Bitfield_extract( 28, 1,object)

Definition at line 168 of file float.h.

#define Dbit29p2 (   object)    Bitfield_extract( 29, 1,object)

Definition at line 169 of file float.h.

#define Dbit2p2 (   object)    Bitfield_extract( 2, 1,object)

Definition at line 165 of file float.h.

#define Dbit30p2 (   object)    Bitfield_extract( 30, 1,object)

Definition at line 170 of file float.h.

#define Dbit31p2 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 171 of file float.h.

#define Dbit3p1 (   object)    Bitfield_extract( 3, 1,object)

Definition at line 138 of file float.h.

#define Dbit3p2 (   object)    Bitfield_extract( 3, 1,object)

Definition at line 166 of file float.h.

#define DBL   1

Definition at line 405 of file float.h.

#define DBL_BIAS   1023

Definition at line 379 of file float.h.

#define DBL_BITLENGTH   64

Definition at line 376 of file float.h.

#define DBL_EMAX   1023

Definition at line 377 of file float.h.

#define DBL_EMIN   (-1022)

Definition at line 378 of file float.h.

#define DBL_EXP_LENGTH   11

Definition at line 383 of file float.h.

#define DBL_INFINITY_EXPONENT   (DBL_EMAX+DBL_BIAS+1)

Definition at line 381 of file float.h.

#define DBL_P   53

Definition at line 384 of file float.h.

#define DBL_THRESHOLD   64

Definition at line 382 of file float.h.

#define DBL_WRAP   1536

Definition at line 380 of file float.h.

#define Deposit_dexponent (   object,
  value 
)    Bitfield_deposit(value,1,11,object)

Definition at line 141 of file float.h.

#define Deposit_dexponentmantissap1 (   object,
  value 
)    Bitfield_deposit(value,1,31,object)

Definition at line 144 of file float.h.

#define Deposit_dextlowp4 (   object,
  value 
)    Bitfield_deposit(value,31,1,object)

Definition at line 295 of file float.h.

#define Deposit_dhigh2mantissa (   object,
  value 
)    Bitfield_deposit(value,12,2,object)

Definition at line 143 of file float.h.

#define Deposit_dhigh4p1 (   object,
  value 
)    Bitfield_deposit(value,0,4,object)

Definition at line 148 of file float.h.

#define Deposit_dlowp1 (   object,
  value 
)    Bitfield_deposit(value,31,1,object)

Definition at line 147 of file float.h.

#define Deposit_dlowp2 (   object,
  value 
)    Bitfield_deposit(value,31,1,object)

Definition at line 173 of file float.h.

#define Deposit_dmantissap1 (   object,
  value 
)    Bitfield_deposit(value,12,20,object)

Definition at line 142 of file float.h.

#define Deposit_dsign (   object,
  value 
)    Bitfield_deposit(value,0,1,object)

Definition at line 140 of file float.h.

#define Deposit_dsignexponent (   object,
  value 
)    Bitfield_deposit(value,0,12,object)

Definition at line 146 of file float.h.

#define Deposit_sexponent (   object,
  value 
)    Bitfield_deposit(value,1,8,object)

Definition at line 88 of file float.h.

#define Deposit_sexponentmantissa (   object,
  value 
)    Bitfield_deposit(value,1,31,object)

Definition at line 91 of file float.h.

#define Deposit_shigh2mantissa (   object,
  value 
)    Bitfield_deposit(value,9,2,object)

Definition at line 90 of file float.h.

#define Deposit_shigh4 (   object,
  value 
)    Bitfield_deposit(value,0,4,object)

Definition at line 95 of file float.h.

#define Deposit_slow (   object,
  value 
)    Bitfield_deposit(value,31,1,object)

Definition at line 94 of file float.h.

#define Deposit_smantissa (   object,
  value 
)    Bitfield_deposit(value,9,23,object)

Definition at line 89 of file float.h.

#define Deposit_ssign (   object,
  value 
)    Bitfield_deposit(value,0,1,object)

Definition at line 87 of file float.h.

#define Deposit_ssignexponent (   object,
  value 
)    Bitfield_deposit(value,0,9,object)

Definition at line 93 of file float.h.

#define Dexponent (   object)    Bitfield_extract( 1, 11,object)

Definition at line 121 of file float.h.

#define Dexponentmantissap1 (   object)    Bitfield_mask( 1, 31,object)

Definition at line 126 of file float.h.

#define Dextallp1 (   object)    (object)

Definition at line 286 of file float.h.

#define Dextallp2 (   object)    (object)

Definition at line 287 of file float.h.

#define Dextallp3 (   object)    (object)

Definition at line 288 of file float.h.

#define Dextallp4 (   object)    (object)

Definition at line 289 of file float.h.

#define Dexthiddenoverflow (   object)    Bitfield_extract( 10, 1,object)

Definition at line 293 of file float.h.

#define Dexthighp3 (   object)    Bitfield_extract( 0, 1,object)

Definition at line 291 of file float.h.

#define Dextlow31p3 (   object)    Bitfield_extract( 1, 31,object)

Definition at line 292 of file float.h.

#define Dextlowp2 (   object)    Bitfield_extract( 31, 1,object)

Definition at line 290 of file float.h.

#define Dhidden (   object)    Bitfield_extract( 11, 1,object)

Definition at line 128 of file float.h.

#define Dhiddenhigh3mantissa (   object)    Bitfield_extract( 11, 4,object)

Definition at line 131 of file float.h.

#define Dhiddenhigh7mantissa (   object)    Bitfield_extract( 11, 8,object)

Definition at line 130 of file float.h.

#define Dhiddenoverflow (   object)    Bitfield_extract( 10, 1,object)

Definition at line 129 of file float.h.

#define Dhigh2mantissa (   object)    Bitfield_extract( 12, 2,object)

Definition at line 125 of file float.h.

#define Dhigh31p1 (   object)    Bitfield_extract( 0, 31,object)

Definition at line 136 of file float.h.

#define Dhigh31p2 (   object)    Bitfield_extract( 0, 31,object)

Definition at line 164 of file float.h.

#define Dhigh4p1 (   object)    Bitfield_extract( 0, 4,object)

Definition at line 135 of file float.h.

#define Dhighp1 (   object)    Bitfield_extract( 0, 1,object)

Definition at line 134 of file float.h.

#define Dhighp2 (   object)    Bitfield_extract( 0, 1,object)

Definition at line 163 of file float.h.

#define DIVISIONBYZEROEXCEPTION   0x10

Definition at line 449 of file float.h.

#define Divisionbyzeroflag (   object)    Bitfield_extract( 1, 1,object)

Definition at line 432 of file float.h.

#define Divisionbyzerotrap (   object)    Bitfield_extract( 28, 1,object)

Definition at line 427 of file float.h.

#define Dlow31p1 (   object)    Bitfield_mask( 1, 31,object)

Definition at line 133 of file float.h.

#define Dlow31p2 (   object)    Bitfield_mask( 1, 31,object)

Definition at line 162 of file float.h.

#define Dlow4p2 (   object)    Bitfield_mask( 28, 4,object)

Definition at line 161 of file float.h.

#define Dlowp1 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 132 of file float.h.

#define Dlowp2 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 160 of file float.h.

#define Dmantissap1 (   object)    Bitfield_mask( 12, 20,object)

Definition at line 122 of file float.h.

#define Dmantissap2 (   object)    (object)

Definition at line 159 of file float.h.

#define Dsign (   object)    Bitfield_extract( 0, 1,object)

Definition at line 119 of file float.h.

#define Dsignaling (   object)    Bitfield_extract( 12, 1,object)

Definition at line 123 of file float.h.

#define Dsignalingnan (   object)    Bitfield_extract( 1, 12,object)

Definition at line 124 of file float.h.

#define Dsignedhigh31p1 (   object)    Bitfield_signed_extract( 0, 31,object)

Definition at line 137 of file float.h.

#define Dsignedsign (   object)    Bitfield_signed_extract( 0, 1,object)

Definition at line 120 of file float.h.

#define Dsignexponent (   object)    Bitfield_extract( 0, 12,object)

Definition at line 127 of file float.h.

#define Equal (   cond)    Equalbit(cond)

Definition at line 537 of file float.h.

#define Equalbit (   object)    Bitfield_extract( 29, 1,object)

Definition at line 490 of file float.h.

#define Exception (   cond)    Exceptionbit(cond)

Definition at line 540 of file float.h.

#define Exceptionbit (   object)    Bitfield_extract( 31, 1,object)

Definition at line 492 of file float.h.

#define Exceptiontype (   object)    Bitfield_extract( 0, 6,object)

Definition at line 469 of file float.h.

#define Ext_isnotzero (   extent)    (Extall(extent))

Definition at line 545 of file float.h.

#define Ext_isnotzero_lower (   extent)    (Extlow31(extent))

Definition at line 547 of file float.h.

#define Ext_isone_sign (   extent)    (Extsign(extent))

Definition at line 544 of file float.h.

#define Ext_leftshiftby1 (   extent)    Extall(extent) <<= 1

Definition at line 549 of file float.h.

#define Ext_negate (   extent)    (int )Extall(extent) = 0 - (int )Extall(extent)

Definition at line 551 of file float.h.

#define Ext_setone_low (   extent)    Bitfield_deposit(1,31,1,extent)

Definition at line 553 of file float.h.

#define Ext_setzero (   extent)    Extall(extent) = 0

Definition at line 554 of file float.h.

#define Extall (   object)    (object)

Definition at line 264 of file float.h.

#define Exthigh31 (   object)    Bitfield_extract( 0, 31,object)

Definition at line 266 of file float.h.

#define Extlow (   object)    Bitfield_extract( 31, 1,object)

Definition at line 268 of file float.h.

#define Extlow31 (   object)    Bitfield_extract( 1, 31,object)

Definition at line 267 of file float.h.

#define Extsign (   object)    Bitfield_extract( 0, 1,object)

Definition at line 265 of file float.h.

#define FABS   (3<<2) | 0

Definition at line 566 of file float.h.

#define FADD   (0<<2) | 3

Definition at line 577 of file float.h.

#define FALSE   0

Definition at line 395 of file float.h.

#define FCMP   (0<<2) | 2

Definition at line 575 of file float.h.

#define FCNVFF   (0<<2) | 1

Definition at line 570 of file float.h.

#define FCNVFX   (2<<2) | 1

Definition at line 572 of file float.h.

#define FCNVFXT   (3<<2) | 1

Definition at line 573 of file float.h.

#define FCNVXF   (1<<2) | 1

Definition at line 571 of file float.h.

#define FCPY   (2<<2) | 0

Definition at line 565 of file float.h.

#define FDIV   (3<<2) | 3

Definition at line 580 of file float.h.

#define FMPY   (2<<2) | 3

Definition at line 579 of file float.h.

#define Fpustatus_register   (*status)

Definition at line 495 of file float.h.

#define FREM   (4<<2) | 3

Definition at line 581 of file float.h.

#define FRND   (5<<2) | 0

Definition at line 568 of file float.h.

#define FSQRT   (4<<2) | 0

Definition at line 567 of file float.h.

#define FSUB   (1<<2) | 3

Definition at line 578 of file float.h.

#define FTEST   (1<<2) | 0

Definition at line 564 of file float.h.

#define Greaterthan (   cond)    Greaterthanbit(cond)

Definition at line 539 of file float.h.

#define Greaterthanbit (   object)    Bitfield_extract( 27, 1,object)

Definition at line 488 of file float.h.

#define Ibit (   object)    Bitfield_extract( 25, 1,object)

Definition at line 473 of file float.h.

#define INEXACTEXCEPTION   0x02

Definition at line 452 of file float.h.

#define Inexactflag (   object)    Bitfield_extract( 4, 1,object)

Definition at line 435 of file float.h.

#define Inexacttrap (   object)    Bitfield_extract( 31, 1,object)

Definition at line 430 of file float.h.

#define Instructionfield (   object)    Bitfield_mask( 6,26,object)

Definition at line 470 of file float.h.

#define INVALIDEXCEPTION   0x20

Definition at line 448 of file float.h.

#define Invalidflag (   object)    Bitfield_extract( 0, 1,object)

Definition at line 431 of file float.h.

#define Invalidtrap (   object)    Bitfield_extract( 27, 1,object)

Definition at line 426 of file float.h.

#define Is_cbit_set ( )    Cbit(Fpustatus_register)

Definition at line 528 of file float.h.

#define Is_dbit21p2 (   object)    Bitfield_mask( 21, 1,object)

Definition at line 179 of file float.h.

#define Is_dbit28p2 (   object)    Bitfield_mask( 28, 1,object)

Definition at line 180 of file float.h.

#define Is_dbit29p2 (   object)    Bitfield_mask( 29, 1,object)

Definition at line 181 of file float.h.

#define Is_dbit2p2 (   object)    Bitfield_mask( 2, 1,object)

Definition at line 177 of file float.h.

#define Is_dbit30p2 (   object)    Bitfield_mask( 30, 1,object)

Definition at line 182 of file float.h.

#define Is_dbit31p2 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 183 of file float.h.

#define Is_dbit3p1 (   object)    Bitfield_mask( 3, 1,object)

Definition at line 156 of file float.h.

#define Is_dbit3p2 (   object)    Bitfield_mask( 3, 1,object)

Definition at line 178 of file float.h.

#define Is_dexthiddenoverflow (   object)    Bitfield_mask( 10, 1,object)

Definition at line 294 of file float.h.

#define Is_dhidden (   object)    Bitfield_mask( 11, 1,object)

Definition at line 152 of file float.h.

#define Is_dhiddenoverflow (   object)    Bitfield_mask( 10, 1,object)

Definition at line 153 of file float.h.

#define Is_dhighp1 (   object)    Bitfield_mask( 0, 1,object)

Definition at line 155 of file float.h.

#define Is_dhighp2 (   object)    Bitfield_mask( 0, 1,object)

Definition at line 176 of file float.h.

#define Is_divisionbyzerotrap_enabled ( )    Divisionbyzerotrap(Fpustatus_register)

Definition at line 510 of file float.h.

#define Is_dlowp1 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 154 of file float.h.

#define Is_dlowp2 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 175 of file float.h.

#define Is_dsign (   object)    Bitfield_mask( 0, 1,object)

Definition at line 150 of file float.h.

#define Is_dsignaling (   object)    Bitfield_mask( 12, 1,object)

Definition at line 151 of file float.h.

#define Is_inexacttrap_enabled ( )    Inexacttrap(Fpustatus_register)

Definition at line 513 of file float.h.

#define Is_invalidtrap_enabled ( )    Invalidtrap(Fpustatus_register)

Definition at line 509 of file float.h.

#define Is_overflowtrap_enabled ( )    Overflowtrap(Fpustatus_register)

Definition at line 511 of file float.h.

#define Is_rounding_mode (   rmode)    (Roundingmode(Fpustatus_register) == rmode)

Definition at line 503 of file float.h.

#define Is_sbit24 (   object)    Bitfield_mask( 24, 1,object)

Definition at line 102 of file float.h.

#define Is_sbit28 (   object)    Bitfield_mask( 28, 1,object)

Definition at line 103 of file float.h.

#define Is_sbit29 (   object)    Bitfield_mask( 29, 1,object)

Definition at line 104 of file float.h.

#define Is_sbit30 (   object)    Bitfield_mask( 30, 1,object)

Definition at line 105 of file float.h.

#define Is_sbit31 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 106 of file float.h.

#define Is_sexthiddenoverflow (   object)    Bitfield_mask( 4, 1,object)

Definition at line 280 of file float.h.

#define Is_shidden (   object)    Bitfield_mask( 8, 1,object)

Definition at line 99 of file float.h.

#define Is_shiddenoverflow (   object)    Bitfield_mask( 7, 1,object)

Definition at line 100 of file float.h.

#define Is_slow (   object)    Bitfield_mask( 31, 1,object)

Definition at line 101 of file float.h.

#define Is_ssign (   object)    Bitfield_mask( 0, 1,object)

Definition at line 97 of file float.h.

#define Is_ssignaling (   object)    Bitfield_mask( 9, 1,object)

Definition at line 98 of file float.h.

#define Is_tbit_set ( )    Tbit(Fpustatus_register)

Definition at line 527 of file float.h.

#define Is_underflowtrap_enabled ( )    Underflowtrap(Fpustatus_register)

Definition at line 512 of file float.h.

#define Lessthan (   cond)    Lessthanbit(cond)

Definition at line 538 of file float.h.

#define Lessthanbit (   object)    Bitfield_extract( 28, 1,object)

Definition at line 489 of file float.h.

#define LOCORE

Definition at line 49 of file float.h.

#define NIL   0

Definition at line 403 of file float.h.

#define NOEXCEPTION   0x0

Definition at line 447 of file float.h.

#define NONE   0

Definition at line 560 of file float.h.

#define NOT   !

Definition at line 397 of file float.h.

#define NULL   0

Definition at line 402 of file float.h.

#define OPC_2E_INEXACTEXCEPTION   0x12

Definition at line 459 of file float.h.

#define OPC_2E_INVALIDEXCEPTION   0x30

Definition at line 456 of file float.h.

#define OPC_2E_OVERFLOWEXCEPTION   0x18

Definition at line 457 of file float.h.

#define OPC_2E_UNDERFLOWEXCEPTION   0x0c

Definition at line 458 of file float.h.

#define OVERFLOWEXCEPTION   0x08

Definition at line 450 of file float.h.

#define Overflowflag (   object)    Bitfield_extract( 2, 1,object)

Definition at line 433 of file float.h.

#define Overflowtrap (   object)    Bitfield_extract( 29, 1,object)

Definition at line 428 of file float.h.

#define Parmfield (   object)    Bitfield_extract( 23, 3,object)

Definition at line 471 of file float.h.

#define QUAD   3

Definition at line 407 of file float.h.

#define QUAD_BIAS   16383

Definition at line 389 of file float.h.

#define QUAD_BITLENGTH   128

Definition at line 386 of file float.h.

#define QUAD_EMAX   16383

Definition at line 387 of file float.h.

#define QUAD_EMIN   (-16382)

Definition at line 388 of file float.h.

#define QUAD_INFINITY_EXPONENT   (QUAD_EMAX+QUAD_BIAS+1)

Definition at line 391 of file float.h.

#define QUAD_P   113

Definition at line 392 of file float.h.

#define QUAD_WRAP   24576

Definition at line 390 of file float.h.

#define Rabit (   object)    Bitfield_extract( 24, 1,object)

Definition at line 472 of file float.h.

#define Rounding_mode ( )    Roundingmode(Fpustatus_register)

Definition at line 502 of file float.h.

#define Roundingmode (   object)    Bitfield_extract( 21, 2,object)

Definition at line 425 of file float.h.

#define ROUNDMINUS   3

Definition at line 444 of file float.h.

#define ROUNDNEAREST   0

Definition at line 441 of file float.h.

#define ROUNDPLUS   2

Definition at line 443 of file float.h.

#define ROUNDZERO   1

Definition at line 442 of file float.h.

#define Sall (   object)    (object)

Definition at line 61 of file float.h.

#define Sbit24 (   object)    Bitfield_extract( 24, 1,object)

Definition at line 81 of file float.h.

#define Sbit28 (   object)    Bitfield_extract( 28, 1,object)

Definition at line 82 of file float.h.

#define Sbit29 (   object)    Bitfield_extract( 29, 1,object)

Definition at line 83 of file float.h.

#define Sbit30 (   object)    Bitfield_extract( 30, 1,object)

Definition at line 84 of file float.h.

#define Sbit31 (   object)    Bitfield_mask( 31, 1,object)

Definition at line 85 of file float.h.

#define Set_divisionbyzeroflag ( )    Bitfield_deposit(1,1,1,Fpustatus_register)

Definition at line 517 of file float.h.

#define Set_exceptiontype (   object,
  value 
)    Bitfield_deposit(value, 0, 6,object)

Definition at line 475 of file float.h.

#define Set_exceptiontype_and_instr_field (   exception,
  instruction,
  object 
)    object = exception << 26 | instruction

Definition at line 477 of file float.h.

#define Set_inexactflag ( )    Bitfield_deposit(1,4,1,Fpustatus_register)

Definition at line 520 of file float.h.

#define Set_invalidflag ( )    Bitfield_deposit(1,0,1,Fpustatus_register)

Definition at line 516 of file float.h.

#define Set_overflowflag ( )    Bitfield_deposit(1,2,1,Fpustatus_register)

Definition at line 518 of file float.h.

#define Set_parmfield (   object,
  value 
)    Bitfield_deposit(value, 23, 3,object)

Definition at line 476 of file float.h.

#define Set_rounding_mode (   value)    Bitfield_deposit(value,21,2,Fpustatus_register)

Definition at line 505 of file float.h.

#define Set_status_cbit (   value)    Bitfield_deposit(value,5,1,Fpustatus_register)

Definition at line 530 of file float.h.

#define Set_tbit ( )    Bitfield_deposit(1,25,1,Fpustatus_register)

Definition at line 525 of file float.h.

#define Set_underflowflag ( )    Bitfield_deposit(1,3,1,Fpustatus_register)

Definition at line 519 of file float.h.

#define Sexponent (   object)    Bitfield_extract( 1, 8,object)

Definition at line 64 of file float.h.

#define Sexponentmantissa (   object)    Bitfield_mask( 1, 31,object)

Definition at line 69 of file float.h.

#define Sextallp1 (   object)    (object)

Definition at line 274 of file float.h.

#define Sextallp2 (   object)    (object)

Definition at line 275 of file float.h.

#define Sexthiddenoverflow (   object)    Bitfield_extract( 4, 1,object)

Definition at line 279 of file float.h.

#define Sexthighp2 (   object)    Bitfield_extract( 0, 1,object)

Definition at line 277 of file float.h.

#define Sextlow31p2 (   object)    Bitfield_extract( 1, 31,object)

Definition at line 278 of file float.h.

#define Sextlowp1 (   object)    Bitfield_extract( 31, 1,object)

Definition at line 276 of file float.h.

#define SGL   0

Definition at line 404 of file float.h.

#define SGL_BIAS   127

Definition at line 369 of file float.h.

#define SGL_BITLENGTH   32

Definition at line 366 of file float.h.

#define SGL_EMAX   127

Definition at line 367 of file float.h.

#define SGL_EMIN   (-126)

Definition at line 368 of file float.h.

#define SGL_EXP_LENGTH   8

Definition at line 373 of file float.h.

#define SGL_INFINITY_EXPONENT   (SGL_EMAX+SGL_BIAS+1)

Definition at line 371 of file float.h.

#define SGL_P   24

Definition at line 374 of file float.h.

#define SGL_THRESHOLD   32

Definition at line 372 of file float.h.

#define SGL_WRAP   192

Definition at line 370 of file float.h.

#define Shidden (   object)    Bitfield_extract( 8, 1,object)

Definition at line 71 of file float.h.

#define Shiddenhigh3mantissa (   object)    Bitfield_extract( 8, 4,object)

Definition at line 74 of file float.h.

#define Shiddenhigh7mantissa (   object)    Bitfield_extract( 8, 8,object)

Definition at line 73 of file float.h.

#define Shiddenoverflow (   object)    Bitfield_extract( 7, 1,object)

Definition at line 72 of file float.h.

#define Shigh2mantissa (   object)    Bitfield_extract( 9, 2,object)

Definition at line 68 of file float.h.

#define Shigh31 (   object)    Bitfield_extract( 0, 31,object)

Definition at line 78 of file float.h.

#define Shigh4 (   object)    Bitfield_extract( 0, 4,object)

Definition at line 80 of file float.h.

#define Slow (   object)    Bitfield_mask( 31, 1,object)

Definition at line 75 of file float.h.

#define Slow31 (   object)    Bitfield_mask( 1, 31,object)

Definition at line 77 of file float.h.

#define Slow4 (   object)    Bitfield_mask( 28, 4,object)

Definition at line 76 of file float.h.

#define Smantissa (   object)    Bitfield_mask( 9, 23,object)

Definition at line 65 of file float.h.

#define Ssign (   object)    Bitfield_extract( 0, 1,object)

Definition at line 62 of file float.h.

#define Ssignaling (   object)    Bitfield_extract( 9, 1,object)

Definition at line 66 of file float.h.

#define Ssignalingnan (   object)    Bitfield_extract( 1, 9,object)

Definition at line 67 of file float.h.

#define Ssignedhigh31 (   object)    Bitfield_signed_extract( 0, 31,object)

Definition at line 79 of file float.h.

#define Ssignedsign (   object)    Bitfield_signed_extract( 0, 1,object)

Definition at line 63 of file float.h.

#define Ssignexponent (   object)    Bitfield_extract( 0, 9,object)

Definition at line 70 of file float.h.

#define Tbit (   object)    Bitfield_extract( 25, 1,object)

Definition at line 424 of file float.h.

#define TRUE   (!FALSE)

Definition at line 396 of file float.h.

#define UNDEFFPINST   1

Definition at line 561 of file float.h.

#define UNDERFLOWEXCEPTION   0x04

Definition at line 451 of file float.h.

#define Underflowflag (   object)    Bitfield_extract( 3, 1,object)

Definition at line 434 of file float.h.

#define Underflowtrap (   object)    Bitfield_extract( 30, 1,object)

Definition at line 429 of file float.h.

#define UNIMPLEMENTEDEXCEPTION   0x01

Definition at line 453 of file float.h.

#define Unordered (   cond)    Unorderedbit(cond)

Definition at line 536 of file float.h.

#define Unorderedbit (   object)    Bitfield_extract( 30, 1,object)

Definition at line 491 of file float.h.

#define XOR   ^

Definition at line 398 of file float.h.

Typedef Documentation

typedef int boolean

Definition at line 411 of file float.h.

Definition at line 359 of file float.h.

Definition at line 360 of file float.h.

Definition at line 361 of file float.h.

typedef int FORMAT

Definition at line 412 of file float.h.

Definition at line 556 of file float.h.

Definition at line 354 of file float.h.

typedef unsigned int sgl_floating_point

Definition at line 358 of file float.h.

typedef int sgl_integer

Definition at line 306 of file float.h.

typedef int VOID

Definition at line 413 of file float.h.