<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/112797>112797</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Strange value of `BITINT_MAXWIDTH` in 16-bit platforms
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          alejandro-colomar
      </td>
    </tr>
</table>

<pre>
    Hi!

@ThePhD claimed that BITINT_MAXWIDTH is (way way) larger than INT_MAX in 16-bit platforms in Clang, which used as a base for the design choices of some C23 <stdbit.h> type-generic macros.

Is Clang really able to use integers of 1 MiB in 16-bit systems?  Could you please confirm if that claim is true and if it actually works?

Cheers,
Alex
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUkGP2ywQ_TX4MkoEOInXBx-yzhdtDvupUiO1t2qAsc0Wmwjwpv73Fd5IXVW9gGBm3nvz9DBG209EDds_s_2pwDkNPjTo6A0nE_xGe-dHDIXyZmleLJOC8RPjx8e549eBvgwn0A7tSAbSgAmeL9fL_9cfr8fv3y6n6wvYCEw-3XGBOy5M1uAw9BRy8wSPTrATiMNG2QQ3h6nzYYz5r3U49Uy2cB-sHmCOZAAjICiMBJ3PKASG8h6gB281RfAdRD8StLIEVrYxGWXTdmDlf5CWG216mihYDSPq4OP280qX-EEJgdC5BVA5guQzMdgpUU9hxRfwap8_iY5LTDRGVp4BWj87A4uf4eYoy9R-6mwYwXYfBq1uZVtSmAlwMrliE6BO88p69-FnxvqsrB2IQmSy_XgeHf0qTFOauqyxoEZUspa8qvaiGBo8lKbDmosaq6eDKak0quaqVqRLo3d1YRvJ5U5wUclS1kJs90rxqkbd7aq9eFIV23Ea0bqtc-_j1oe-sDHO1Aghq7oqHCpycY2NlBPdYa0yKXOKQpOHNmruI9txZ2OKf2CSTY6aryng1BO8o5sp-8kO_K_YsAP_VyiKObhmSOkWWXlk8szkubdpmNVW-5HJcyZ6XJtb8G-kE5PnVV5k8vzQ_97I3wEAAP__y571IQ">