|
2022-09-17
| ||
| 21:55 | • Ticket [45ddcfc3b1] Tcl_WideInt might be > long long (64-bit) status stil... artifact: 4843e2e686 user: chrstphrchvz | |
|
2022-09-06
| ||
| 15:57 | • Ticket [931802a0f5] Require Tcl_WideInt/Tcl_WideUInt to be exactly 64 bits s... artifact: 1d151b3ba4 user: jan.nijtmans | |
|
2021-01-08
| ||
| 10:27 | Compile Tcl with -DTCL_WIDE_INT_TYPE=__int128, proving [45ddcfc3b1]. For now, only for Linux, don't ... check-in: 481654654f user: jan.nijtmans tags: bug-45ddcfc3b1 | |
| 10:22 | • New ticket [45ddcfc3b1] Tcl_WideInt might be > long long (64-bit). artifact: af0ae91690 user: jan.nijtmans | |
Tcl_WideInt might be > long long (64-bit)
Open45ddcfc3b1944869ffb1b3eca0250dc452d79537Created 6 years agoUpdated 4 years ago
Descriptionwiki2021-01-08 10:22:58
According to the comments in tcl.h https://core.tcl-lang.org/tcl/artifact?ln=390-422&name=4010d6ce1800f5a9, Tcl_WideInt can be redefined using TCL_WIDE_INT_TYPE to be any type >= 64 bits. In fact, doing that (modern gcc has __int128), a lot of test-cases fail. The TIP #592 implementation already improves things, by using "long long" instead of Tcl_WideInt, but - still - a lot of testcases fail because the core code assumes in a lot of places that Tcl_WideInt is _exactly_ 64-bits.
This can only be fixed in 8.7, because then we can assume presence of the C99 "long long".
Referenced by2
1d151b3ba4Ticket [931802a0f5] Require Tcl_WideInt/Tcl_WideUInt to be exactly 64 bits status still Open with 3 other changes ticket2022-09-06 15:57:01481654654fCompile Tcl with -DTCL_WIDE_INT_TYPE=__int128, proving [45ddcfc3b1]. For now, only for Linux, don't bother MacOS and Windows yet check-in2021-01-08 10:27:00
chrstphrchvzwiki2022-09-17 21:55:54
Subscribing in case of updates; I think this issue is possibly of interest to library/extension maintainers or other C API users.
Log in (anonymous is fine) to add a comment.