cccl
cccl copied to clipboard
[FEA]: Provide `std::assume_aligned`
Is this a duplicate?
- [x] I confirmed there appear to be no duplicate issues for this request and that I agree to the Code of Conduct
Area
libcu++
Is your feature request related to a problem? Please describe.
Pointer alignment is a crucial optimization to get the best performance in many applications. C++20 standardizes the function to inform the compiler of the pointer alignment with std::assume_aligned
Describe the solution you'd like
Provide std::assume_aligned backported to previous c++ standard by using compiler intrinsic
Describe alternatives you've considered
No response
Additional context
No response