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 Bin, Oct, LowerHex and UpperHex for ApInt #12

Open
3 of 4 tasks
Robbepop opened this issue Jan 4, 2018 · 1 comment
Open
3 of 4 tasks

Implement Bin, Oct, LowerHex and UpperHex for ApInt #12

Robbepop opened this issue Jan 4, 2018 · 1 comment

Comments

@Robbepop
Copy link
Owner

Robbepop commented Jan 4, 2018

Currently ApInt only provides printing via the fmt::Debug trait implementation which offers internal debug information about each instance but is not suitable for simple printing of values.

Due to the data structures used for ApInt the following display-traits are simple to implement and offer a decent initial starting ground:

Later an implementation of Display for (decimal representation) may be useful but this still requires robust implementation of the arithmetic module.

@Robbepop
Copy link
Owner Author

Robbepop commented May 16, 2018

Initial implementation of Binary, LowerHex and UpperHex in edf46b1 and forwarding impls for Int and UInt in af6d35b.

Now only the implementation for Octal is missing.

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

No branches or pull requests

1 participant