Skip to content

Conversation

@danielsn
Copy link
Contributor

@danielsn danielsn commented Oct 29, 2021

Description of changes:

Currently, min_int and max_int work on 128 bit representations, which means we can't calculate them for larger sizes. This was causing unnecessary codegen failures. Instead, use BigInt so we have no width constraints (until Rust runs out of memory, anyway)

Resolved issues:

Resolves #414

Call-outs:

  • Moved the code into utils, where it belongs

Testing:

  • How is this change tested? Additional unit tests

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice unit tests.

@danielsn danielsn merged commit 7b491be into main Nov 1, 2021
@danielsn danielsn deleted the fix_max_int branch November 1, 2021 18:05
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
tedinski pushed a commit that referenced this pull request Apr 27, 2022
… BigInt to avoid any arbitrary width constraints (#605)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

assertion failed: w < 128 in building ipnet

3 participants