71 volatile float f = 1e10;
73 for (
int i = 0;
i < 10;
i++)
98 int s = (i >> 16) & 0x00008000;
99 int e = ((i >> 23) & 0x000000ff) - (127 - 15);
100 int m = i & 0x007fffff;
145 int a = (1 << (t - 1)) - 1;
146 int b = (m >>
t) & 1;
148 m = (m + a +
b) >> t;
156 else if (e == 0xff - (127 - 15))
179 return s | 0x7c00 | m | (m == 0);
194 m = m + 0x00000fff + ((m >> 13) & 1);
216 return s | (e << 10) | (m >> 13);
251 unsigned short b = h.
bits();
253 for (
int i = 15; i >= 0; i--)
255 os << (((b >>
i) & 1)?
'1':
'0');
257 if (i == 15 || i == 10)
269 for (
int i = 31; i >= 0; i--)
271 os << (((x.
i >>
i) & 1)?
'1':
'0');
273 if (i == 31 || i == 23)
282 unsigned short b = h.
bits();
284 for (
int i = 15,
j = 0; i >= 0; i--,
j++)
286 c[
j] = (((b >>
i) & 1)?
'1':
'0');
288 if (i == 15 || i == 10)
302 for (
int i = 31,
j = 0; i >= 0; i--,
j++)
304 c[
j] = (((x.
i >>
i) & 1)?
'1':
'0');
306 if (i == 31 || i == 23)