Skip to content

Strange value of BITINT_MAXWIDTH in 16-bit platforms #112797

@alejandro-colomar

Description

@alejandro-colomar

Hi!

@ThePhD claimed that BITINT_MAXWIDTH is (way way) larger than INT_MAX in 16-bit platforms in Clang, which was 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions