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

Go to the source code of this file.

Macros

#define assert(expr)   ((void)0)
 
#define XDPSRS(v, rs)   ((rs > (DP_MBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0))
 
#define XDPSRSX1()   (xe++, (xm = (xm >> 1) | (xm & 1)))
 
#define XDPSRS1(v)   (((v) >> 1) | ((v) & 1))
 
#define DPDNORMx(m, e)   while( (m >> DP_MBITS) == 0) { m <<= 1; e--; }
 
#define DPDNORMX   DPDNORMx(xm, xe)
 
#define DPDNORMY   DPDNORMx(ym, ye)
 
#define DPNORMRET2(s, e, m, name, a0, a1)
 
#define DPNORMRET1(s, e, m, name, a0)   DPNORMRET2(s, e, m, name, a0, a0)
 

Functions

int ieee754dp_isnan (ieee754dp)
 
int ieee754dp_issnan (ieee754dp)
 
int ieee754si_xcpt (int, const char *,...)
 
s64 ieee754di_xcpt (s64, const char *,...)
 
ieee754dp ieee754dp_xcpt (ieee754dp, const char *,...)
 
ieee754dp ieee754dp_nanxcpt (ieee754dp, const char *,...)
 
ieee754dp ieee754dp_bestnan (ieee754dp, ieee754dp)
 
ieee754dp ieee754dp_format (int, int, u64)
 

Macro Definition Documentation

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

Definition at line 30 of file ieee754dp.h.

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

Definition at line 43 of file ieee754dp.h.

#define DPDNORMX   DPDNORMx(xm, xe)

Definition at line 45 of file ieee754dp.h.

#define DPDNORMY   DPDNORMx(ym, ye)

Definition at line 46 of file ieee754dp.h.

#define DPNORMRET1 (   s,
  e,
  m,
  name,
  a0 
)    DPNORMRET2(s, e, m, name, a0, a0)

Definition at line 82 of file ieee754dp.h.

#define DPNORMRET2 (   s,
  e,
  m,
  name,
  a0,
  a1 
)
Value:
{ \
ieee754dp V = ieee754dp_format(s, e, m); \
if(TSTX()) \
return ieee754dp_xcpt(V, name, a0, a1); \
else \
return V; \
}

Definition at line 73 of file ieee754dp.h.

#define XDPSRS (   v,
  rs 
)    ((rs > (DP_MBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0))

Definition at line 33 of file ieee754dp.h.

#define XDPSRS1 (   v)    (((v) >> 1) | ((v) & 1))

Definition at line 39 of file ieee754dp.h.

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

Definition at line 36 of file ieee754dp.h.

Function Documentation

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

Definition at line 114 of file ieee754.c.

ieee754dp ieee754dp_bestnan ( ieee754dp  ,
ieee754dp   
)

Definition at line 90 of file ieee754dp.c.

ieee754dp ieee754dp_format ( int  ,
int  ,
u64   
)

Definition at line 133 of file ieee754dp.c.

int ieee754dp_isnan ( ieee754dp  )

Definition at line 36 of file ieee754dp.c.

int ieee754dp_issnan ( ieee754dp  )

Definition at line 41 of file ieee754dp.c.

ieee754dp ieee754dp_nanxcpt ( ieee754dp  ,
const char ,
  ... 
)

Definition at line 63 of file ieee754dp.c.

ieee754dp ieee754dp_xcpt ( ieee754dp  ,
const char ,
  ... 
)

Definition at line 48 of file ieee754dp.c.

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

Definition at line 99 of file ieee754.c.