Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Array8, Array16 and Array32 types #502

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Kmeakin
Copy link
Contributor

@Kmeakin Kmeakin commented Feb 13, 2023

  • Removes the Array8, Array16 and Array32 types and their corresponding functions, leaving only Array64.
  • Added <from>_extend_<to> and <from>_truncate_<to> for all integer types
  • Implicitly insert extension functions during coercion. This allows using shorter integers (eg parsed from input) to operate on Array64 without hassle

@Kmeakin
Copy link
Contributor Author

Kmeakin commented Feb 13, 2023

Removed implicit extension because it could silently change the result of expressions (eg (u16_extend_u64 x * u16_extend_u64 y) != u16_extend_u64 (x * y))

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.

None yet

1 participant