4 ; Test hexadecimal floating-point numbers
6 %define Inf __Infinity__
25 dw 0x0.123456789abcdef0123456789abcdef012345p
-10
27 dw 0x0.0000123456789p
+10
28 dw 0x0.0000123456789p
-10
29 dw 0x1.0p
-25 ; Underflow
30 dw 0x1.0p
-24 ; Smallest denorm
31 dw 0x1.ffffffffffffffffffffffffffffp
-16 ; Rounds to denorm
33 dw 0x1.ffffffffffffffffffffffffffffp
-15 ; Rounds to normal
34 dw 0x1.0p
-14 ; Smallest non-denorm
35 dw 0x1.0p
+15 ; Biggest possible exponent
36 dw 0x1.ffffffffffffffffffffffffffffp
+15 ; Rounds to infinity
56 dd 0x0.123456789abcdef0123456789abcdef012345p
-10
58 dd 0x0.0000123456789p
+10
59 dd 0x0.0000123456789p
-10
64 dd 0x1.0p
-150 ; Underflow
65 dd 0x1.0p
-149 ; Smallest denorm
66 dd 0x1.ffffffffffffffffffffffffffffp
-128 ; Rounds to denorm
67 dd 0x1.0p
-127 ; Denorm
68 dd 0x1.ffffffffffffffffffffffffffffp
-127 ; Rounds to normal
69 dd 0x1.0p
-126 ; Smallest non-denorm
70 dd 0x1.0p
+127 ; Biggest possible exponent
71 dd 0x1.ffffffffffffffffffffffffffffp
+127 ; Rounds to infinity
91 dq 0x0.123456789abcdef0123456789abcdef012345p
-10
93 dq 0x0.0000123456789p
+10
94 dq 0x0.0000123456789p
-10
99 dq 0x1.0p
-1075 ; Underflow
100 dq 0x1.0p
-1074 ; Smallest denorm
101 dq 0x1.ffffffffffffffffffffffffffffp
-1024 ; Rounds to denorm
102 dq 0x1.0p
-1023 ; Denorm
103 dq 0x1.ffffffffffffffffffffffffffffp
-1023 ; Rounds to normal
104 dq 0x1.0p
-1022 ; Smallest non-denorm
105 dq 0x1.0p
+1023 ; Biggest possible exponent
106 dq 0x1.ffffffffffffffffffffffffffffp
+1023 ; Rounds to infinity
126 dt 0x0.123456789abcdef0123456789abcdef012345p
-10
128 dt 0x0.0000123456789p
+10
129 dt 0x0.0000123456789p
-10
133 dt 0x123456789.0p
+1024
134 dt 0x1.0p
-16446 ; Underflow
135 dt 0x1.0p
-16445 ; Smallest denorm
136 dt 0x1.ffffffffffffffffffffffffffffp
-16384 ; Rounds to denorm
137 dt 0x1.0p
-16383 ; Denorm
138 dt 0x1.ffffffffffffffffffffffffffffp
-16383 ; Rounds to normal
139 dt 0x1.0p
-16382 ; Smallest non-denorm
140 dt 0x1.0p
+16383 ; Biggest possible exponent
141 dq 0x1.ffffffffffffffffffffffffffffp
+16383 ; Rounds to infinity
161 do
0x0.123456789abcdef0123456789abcdef012345p
-10
163 do
0x0.0000123456789p
+10
164 do
0x0.0000123456789p
-10
168 do
0x123456789.0p
+1024
169 do
0x1.0p
-16495 ; Underflow
170 do
0x1.0p
-16494 ; Smallest denorm
171 do
0x1.ffffffffffffffffffffffffffffffffp
-16384 ; Rounds to denorm
172 do
0x1.0p
-16383 ; Denorm
173 do
0x1.ffffffffffffffffffffffffffffffffp
-16383 ; Rounds to normal
174 do
0x1.0p
-16382 ; Smallest non-denorm
175 do
0x1.0p
+16383 ; Biggest possible exponent
176 do
0x1.ffffffffffffffffffffffffffffffffp
+16383 ; Rounds to infinity