65 int s = (y >> 15) & 0x00000001;
66 int e = (y >> 10) & 0x0000001f;
67 int m = y & 0x000003ff;
85 while (!(m & 0x00000400))
103 return (s << 31) | 0x7f800000;
111 return (s << 31) | 0x7f800000 | (m << 13);
126 return (s << 31) | (e << 23) | m;
138 cout.setf (ios_base::hex, ios_base::basefield);
141 "// This is an automatically generated file.\n"
147 const int iMax = (1 << 16);
149 for (
int i = 0;
i < iMax;
i++)
151 cout <<
"{0x" << setfill (
'0') << setw (8) <<
halfToFloat (
i) <<
"}, ";