Re: [PATCH v5 1/4] eal: add pointer compression functions

2024-02-11 Thread Konstantin Ananyev
Add a new utility header for compressing pointers. The provided functions can store pointers in 32-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 b

[PATCH v5 1/4] eal: add pointer compression functions

2023-11-01 Thread Paul Szczepanek
Add a new utility header for compressing pointers. The provided functions can store pointers in 32-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