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
Should the other unchecked intrinsics like exact_div also get inherent versions?
From Add inherent unchecked_shl, unchecked_shr to integers #85703, consider if distinguishing the different kinds of ub could be useful (UB from overflow like MIN/-1 or MAX+1, LLVM's n[us]w; UB from input range like x/0 or x << -1; UB from lossy like 2/4 or 3 >> 1, LLVM's exact)
Resolved unresolved questions:
Is unchecked_* the best naming for these? We stabilised unchecked_{add,sub,mul} already, so, yes.
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.