Commit a45cd94
committed
Implement double-to-integer conversions for s390x
luajit2 currently does not link on s390x because double-to-integer
conversion functions are missing. lj_vm_num2u64() is slightly
different, because the hardware indicates overflow differently.
Implement them similarly to how x86_64 does it.1 parent ccdd329 commit a45cd94
2 files changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
545 | 553 | | |
546 | 554 | | |
547 | 555 | | |
| |||
728 | 736 | | |
729 | 737 | | |
730 | 738 | | |
| 739 | + | |
731 | 740 | | |
732 | 741 | | |
733 | 742 | | |
| |||
965 | 974 | | |
966 | 975 | | |
967 | 976 | | |
| 977 | + | |
968 | 978 | | |
969 | 979 | | |
970 | 980 | | |
| |||
1329 | 1339 | | |
1330 | 1340 | | |
1331 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
1332 | 1346 | | |
1333 | 1347 | | |
1334 | 1348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2147 | 2147 | | |
2148 | 2148 | | |
2149 | 2149 | | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
2150 | 2185 | | |
2151 | 2186 | | |
2152 | 2187 | | |
| |||
0 commit comments