Go to the documentation of this file.
30 #define assert(expr) ((void)0)
33 #define SPXSRSXn(rs) \
35 xm = (rs > (SP_MBITS+3))?1:((xm) >> (rs)) | ((xm) << (32-(rs)) != 0))
38 (xe++, (xm = (xm >> 1) | (xm & 1)))
40 #define SPXSRSYn(rs) \
42 ym = (rs > (SP_MBITS+3))?1:((ym) >> (rs)) | ((ym) << (32-(rs)) != 0))
45 (ye++, (ym = (ym >> 1) | (ym & 1)))
48 #define SPDNORMx(m,e) \
49 while( (m >> SP_MBITS) == 0) { m <<= 1; e--; }
50 #define SPDNORMX SPDNORMx(xm, xe)
51 #define SPDNORMY SPDNORMx(ym, ye)
53 static inline ieee754sp buildsp(
int s,
int bx,
unsigned m)
57 assert((s) == 0 || (s) == 1);
79 #define SPNORMRET2(s, e, m, name, a0, a1) \
81 ieee754sp V = ieee754sp_format(s, e, m); \
83 return ieee754sp_xcpt(V, name, a0, a1); \
88 #define SPNORMRET1(s, e, m, name, a0) SPNORMRET2(s, e, m, name, a0, a0)