Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1b69c18c4e0a3a0f887ed055b5b15f9234727793392e02b12ea9f1b74dba0bc0
Ticket: 931802a0f552db2e96d2ecf2439bdfb393b49451
Require Tcl_WideInt/Tcl_WideUInt to be exactly 64 bits
User & Date: chrstphrchvz on 2022-09-17 21:51:56
Changes

  1. icomment:
    I ask mainly in case it would be nice to know that <tt>Tcl_WideInt</tt> is exactly 64-bit when writing library/extension code (a possibly more strict guarantee than it being <tt>long long</tt>), but even without this guarantee, any concerns seem remote enough for the time being.
    
    I now notice the IntObj documentation has already taken TIP 476 into account, so I am probably just behind (Tcl 8.6 not requiring C99 probably a reason for it to avoid mentioning <tt>long long</tt>). The ABI stability requirement should already be obvious to me, though maybe that is not what I should have asked about, and instead I should have asked about <tt>__int128</tt> merely as a configuration option for those not concerned about ABI compatibility with anything built with Tcl defaults. But as long as compilers have yet to provide format specifiers for <tt>__int128</tt> then I agree there isn’t much for early adopters to try; they are probably better off adding a new Tcl value type for <tt>__int128</tt> than redefining <tt>Tcl_WideInt</tt>.
    
    I had searched this site for <tt>__int128</tt> but was not lead to the existing ticket. I am fine with this ticket being closed as e.g. duplicate or out of date.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"