-
Notifications
You must be signed in to change notification settings - Fork 4
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 increment and decrement operations #7
Comments
Maybe this could be enriched to also cover |
Maybe it is better to implement a more generic way to increment or decrement an
These methods are not named to their very similar counterparts |
I will do a pull request for |
For the moment I am against implementing |
To increase or decrease the value of an
ApInt
instance by one today a user has to instantiate anotherApInt
with the same bit width of value representing one (1
) and add or subtract it from the givenApInt
. The creation of the temporaryApInt
might be a slow operations and this it is better to have new APIsApInt::increment
andApInt::decrement
to efficiently increase or decrease anApInt
by one (1
).The text was updated successfully, but these errors were encountered: