-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for inherent unchecked integer methods #85122
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Milestone
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the
unchecked_*methods on integers.unchecked_math(stable as of #122520)Steps / History
unchecked_{add,sub,mul}unchecked_{add,sub,mul}#122520unchecked_negSteps / History
unchecked_negunchecked_shiftsSteps / History
unchecked_{shl|shr}should useu32as the RHS #103456unchecked_*(aggregate)Steps / History
unchecked_{add,sub,mul}unchecked_{shl|shr}should useu32as the RHS #103456unchecked_negunchecked_{add,sub,mul}#122520Unresolved Questions
exact_divalso get inherent versions?MIN/-1orMAX+1, LLVM'sn[us]w; UB from input range likex/0orx << -1; UB from lossy like2/4or3 >> 1, LLVM'sexact)Resolved unresolved questions:
IsWe stabilisedunchecked_*the best naming for these?unchecked_{add,sub,mul}already, so, yes.