-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tracking Issue for pointer::mask
#98290
Comments
Are there plans to make the This currently depends on making |
These functions cannot in general be made const-compatible, since their behavior depends on the exact bits of a pointer value which are not known at compile-time. Certain tricks could be played for the specific case where the original allocation was sufficiently aligned to make the lowest bits of the pointers statically predictable. That would need new specialized intrinsics though, it cannot be implemented via |
Don't we also need an operation that corresponds to (Maybe LLVM should just support what we call Cc @nikic |
LLVM currently doesn't have something like |
Makes sense, thanks for the update!
(Sorry for saying "just support", I did not mean to imply that this is easy.)
|
Feature gate:
#![feature(ptr_mask)]
This is a tracking issue for
<*const T>::mask
and<*mut T>::mask
methods that allow masking pointers.Public API
Steps / History
Unresolved Questions
The text was updated successfully, but these errors were encountered: