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
The current documentation is not clear whether adding `a` to a pointer overaligns (align up) or underaligns (align down).
It should say this explicitly.
/// Calculate an element-offset that increases a pointer's alignment.
2170
2170
///
2171
-
/// Calculate offset (in terms of elements of `size_of::<T>()` stride) that has to be applied
2172
-
/// to pointer `p` so that pointer `p` would get aligned to `a`.
2171
+
/// Calculate an element-offset (not byte-offset) that when added to a given pointer `p`, increases `p`'s alignment to at least the given alignment `a`.
0 commit comments