Commit 340ebd4
committed
define IEEE_MC68k instead of IEEE_8087 on big endian machines
- dtoa.cc from ampl/mp assumes little endianness, which results in floats
being written incorrectly on big endian machines
- this commit adds a guess what the endianness is, and defines IEEE_MC68k
instead of IEEE_8087 when we guess its big endian
- fixes #1831 parent 39079e4 commit 340ebd4
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
281 | 305 | | |
282 | 306 | | |
283 | 307 | | |
| |||
349 | 373 | | |
350 | 374 | | |
351 | 375 | | |
352 | | - | |
353 | | - | |
| 376 | + | |
354 | 377 | | |
355 | 378 | | |
356 | 379 | | |
| |||
0 commit comments