-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[opt] Slightly simplify algebraic simplification #2337
Conversation
I'm not sure if we need a function to cast integer values to int64/uint64 (i.e., handle signed/unsigned cases together)... |
We already have We do need to add the |
These 2 functions only handles signed/unsigned versions separately. I wonder if we want to use only one function when we don't care if the value of the
They are already |
Right, sounds like it could be useful
Ah, i was talking about these: Lines 402 to 411 in c824a8b
|
Right, I agree that we need these, but maybe copying these functions will make this file too long? |
That shouldn't be a concern... |
This PR should be ready for review now :) |
Related issue = a continuation of #2332
val_cast_to_uint64()
looks cleaner than two if-branches with the same body.[Click here for the format server]