- Notifications
You must be signed in to change notification settings - Fork5
Commitc318aee
committed
Try to be more consistent about accepting denormalized float8 numbers.
On some platforms, strtod() reports ERANGE for a denormalized value (ie,one that can be represented as distinct from zero, but is too small to havefull precision). On others, it doesn't. It seems better to try to acceptthese values consistently, so add a test to see if the result valueindicates a true out-of-range condition. This should be okay per SingleUnix Spec. On machines where the underlying math isn't IEEE standard, thebehavior for such small numbers may not be very consistent, but then itwouldn't be anyway.Marti Raudsepp, after a proposal by Jeroen Vermeulen1 parentb2e431a commitc318aee
1 file changed
+34
-10
lines changedLines changed: 34 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
| 220 | + | |
| 221 | + | |
220 | 222 |
| |
221 | 223 |
| |
222 | 224 |
| |
| |||
237 | 239 |
| |
238 | 240 |
| |
239 | 241 |
| |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
245 | 257 |
| |
246 | 258 |
| |
247 | 259 |
| |
| |||
410 | 422 |
| |
411 | 423 |
| |
412 | 424 |
| |
| 425 | + | |
| 426 | + | |
413 | 427 |
| |
414 | 428 |
| |
415 | 429 |
| |
| |||
430 | 444 |
| |
431 | 445 |
| |
432 | 446 |
| |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
438 | 462 |
| |
439 | 463 |
| |
440 | 464 |
| |
|
0 commit comments
Comments
(0)