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

Implement uint64 and uint64be built-in functions #26

Open
plusvic opened this issue May 11, 2023 · 0 comments
Open

Implement uint64 and uint64be built-in functions #26

plusvic opened this issue May 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@plusvic
Copy link
Member

plusvic commented May 11, 2023

Implement uint64 and uint64be that works that works in the same way than existing uint8, uint16 and uint32 and their respective big-endian counterparts.

This requires implementing full support for u64 integers at the language level, particularly we need to handle correctly the cases in which the integers are larger than 0x7FFFFFFFFFFFFF. A literal like0x8000000000000000 is not currently supported because it doesn't fit in an i64, so we need to add a new variant to TypeValue that accepts an u64, and we must handle correctly the operations between signed and unsigned integers.

@plusvic plusvic added the enhancement New feature or request label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant