Skip to content

[GNATS 27353] Set MAX_INTEGER_VALUE/MAX_UNSIGNED_INTEGER_VALUE properly for 128-bit integers #38

Description

@jhsedg

Description

​Trying to use a 128-bit integer host representation ends up defaulting MAX_INTEGER_VALUE/MAX_UNSIGNED_INTEGER_VALUE to incorrect values. These seem to work:
​
​#define MAX_INTEGER_VALUE ((__int128_t)0x7fffffffffffffffffffffffffffffff)
​#define MAX_UNSIGNED_INTEGER_VALUE ((__uint128_t)0xffffffffffffffffffffffffffffffff)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions