> 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 located in a limited memory region (like a mempool). > We can compress them by converting them to offsets from a base > memory address. Offsets can be stored in fewer bytes (dictated > by the memory region size and alignment of the pointer). > For example: an 8 byte aligned pointer which is part of a 32GB > memory pool can be stored in 4 bytes. > > Suggested-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > Signed-off-by: Paul Szczepanek <paul.szczepa...@arm.com> > Signed-off-by: Kamalakshitha Aligeri <kamalakshitha.alig...@arm.com> > Reviewed-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > Reviewed-by: Nathan Brown <nathan.br...@arm.com> > Reviewed-by: Jack Bond-Preston <jack.bond-pres...@foss.arm.com> > ---
Acked-by: Morten Brørup <m...@smartsharesystems.com>