You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, shift_right (and probably shift_left as well) don't support a shift larger than the limb bitwidth and when used give an undefined result. It would be nice if this was supported, or at least checked so an error would be given whenever it is tried.
The text was updated successfully, but these errors were encountered:
Currently, shift_right (and probably shift_left as well) don't support a shift larger than the limb bitwidth and when used give an undefined result. It would be nice if this was supported, or at least checked so an error would be given whenever it is tried.
Indeed. I have now clarified this in the inline documentation of those functions.
I could also add an assert statement to explicitly check this, but then consumers have to think of compiling with the NDEBUG flag in production builds. Would you prefer that?
Currently,
shift_right
(and probablyshift_left
as well) don't support a shift larger than the limb bitwidth and when used give an undefined result. It would be nice if this was supported, or at least checked so an error would be given whenever it is tried.The text was updated successfully, but these errors were encountered: