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

Go to the source code of this file.

Macros

#define assert(expr)   ((void)0)
 
#define SPXSRSXn(rs)
 
#define SPXSRSX1()   (xe++, (xm = (xm >> 1) | (xm & 1)))
 
#define SPXSRSYn(rs)
 
#define SPXSRSY1()   (ye++, (ym = (ym >> 1) | (ym & 1)))
 
#define SPDNORMx(m, e)   while( (m >> SP_MBITS) == 0) { m <<= 1; e--; }
 
#define SPDNORMX   SPDNORMx(xm, xe)
 
#define SPDNORMY   SPDNORMx(ym, ye)
 
#define SPNORMRET2(s, e, m, name, a0, a1)
 
#define SPNORMRET1(s, e, m, name, a0)   SPNORMRET2(s, e, m, name, a0, a0)
 

Functions

int ieee754sp_isnan (ieee754sp)
 
int ieee754sp_issnan (ieee754sp)
 
int ieee754si_xcpt (int, const char *,...)
 
s64 ieee754di_xcpt (s64, const char *,...)
 
ieee754sp ieee754sp_xcpt (ieee754sp, const char *,...)
 
ieee754sp ieee754sp_nanxcpt (ieee754sp, const char *,...)
 
ieee754sp ieee754sp_bestnan (ieee754sp, ieee754sp)
 
ieee754sp ieee754sp_format (int, int, unsigned)
 

Macro Definition Documentation

#define assert (   expr)    ((void)0)

Definition at line 30 of file ieee754sp.h.

#define SPDNORMx (   m,
  e 
)    while( (m >> SP_MBITS) == 0) { m <<= 1; e--; }

Definition at line 48 of file ieee754sp.h.

#define SPDNORMX   SPDNORMx(xm, xe)

Definition at line 50 of file ieee754sp.h.

#define SPDNORMY   SPDNORMx(ym, ye)

Definition at line 51 of file ieee754sp.h.

#define SPNORMRET1 (   s,
  e,
  m,
  name,
  a0 
)    SPNORMRET2(s, e, m, name, a0, a0)

Definition at line 88 of file ieee754sp.h.

#define SPNORMRET2 (   s,
  e,
  m,
  name,
  a0,
  a1 
)
Value:
{ \
ieee754sp V = ieee754sp_format(s, e, m); \
if(TSTX()) \
return ieee754sp_xcpt(V, name, a0, a1); \
else \
return V; \
}

Definition at line 79 of file ieee754sp.h.

#define SPXSRSX1 ( )    (xe++, (xm = (xm >> 1) | (xm & 1)))

Definition at line 37 of file ieee754sp.h.

#define SPXSRSXn (   rs)
Value:
(xe += rs, \
xm = (rs > (SP_MBITS+3))?1:((xm) >> (rs)) | ((xm) << (32-(rs)) != 0))

Definition at line 33 of file ieee754sp.h.

#define SPXSRSY1 ( )    (ye++, (ym = (ym >> 1) | (ym & 1)))

Definition at line 44 of file ieee754sp.h.

#define SPXSRSYn (   rs)
Value:
(ye+=rs, \
ym = (rs > (SP_MBITS+3))?1:((ym) >> (rs)) | ((ym) << (32-(rs)) != 0))

Definition at line 40 of file ieee754sp.h.

Function Documentation

s64 ieee754di_xcpt ( s64  ,
const char ,
  ... 
)

Definition at line 114 of file ieee754.c.

int ieee754si_xcpt ( int  ,
const char ,
  ... 
)

Definition at line 99 of file ieee754.c.

ieee754sp ieee754sp_bestnan ( ieee754sp  ,
ieee754sp   
)

Definition at line 91 of file ieee754sp.c.

ieee754sp ieee754sp_format ( int  ,
int  ,
unsigned   
)

Definition at line 134 of file ieee754sp.c.

int ieee754sp_isnan ( ieee754sp  )

Definition at line 36 of file ieee754sp.c.

int ieee754sp_issnan ( ieee754sp  )

Definition at line 41 of file ieee754sp.c.

ieee754sp ieee754sp_nanxcpt ( ieee754sp  ,
const char ,
  ... 
)

Definition at line 64 of file ieee754sp.c.

ieee754sp ieee754sp_xcpt ( ieee754sp  ,
const char ,
  ... 
)

Definition at line 48 of file ieee754sp.c.