diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-05-11 17:52:00 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-08-21 05:27:14 +0400 |
| commit | 10270f4b442207b23b28f776b8dda297bd03570a (patch) | |
| tree | 64993fc370f2192d32582e631d5cf924fa77bb98 /compiler/rustc_codegen_gcc | |
| parent | 48853a361a5ff0e8215301c62f259a26eed7aa72 (diff) | |
| download | rust-10270f4b442207b23b28f776b8dda297bd03570a.tar.gz rust-10270f4b442207b23b28f776b8dda297bd03570a.zip | |
Add pointer masking convenience functions
This commit adds the following functions all of which have a signature `pointer, usize -> pointer`: - `<*mut T>::mask` - `<*const T>::mask` - `intrinsics::ptr_mask` These functions are equivalent to `.map_addr(|a| a & mask)` but they utilize `llvm.ptrmask` llvm intrinsic. *masks your pointers*
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
