RE: [PATCH v12 3/6] ptr_compress: add pointer compression library

2024-05-29 Thread Morten Brørup
> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] > Sent: Wednesday, 29 May 2024 12.23 > > Add a new utility header for compressing pointers. The provided > functions can store pointers as 32-bit or 16-bit offsets. > > The compression takes advantage of the fact that pointers are > usually

[PATCH v12 3/6] ptr_compress: add pointer compression library

2024-05-29 Thread Paul Szczepanek
Add a new utility header for compressing pointers. The provided functions can store pointers as 32-bit or 16-bit offsets. The compression takes advantage of the fact that pointers are usually located in a limited memory region (like a mempool). We can compress them by converting them to offsets fr