On Thu, 20 Feb 2025 08:13:31 -0500 Waiman Long <llong@xxxxxxxxxx> wrote: > Another alternative is to encode the locking type into the lowest 2 bits > of the address and combined them into a single atomic_long_t data item. > Of course, we can only support 4 different types with this scheme. You could also use the MSB as they are either always all ones or all zeros depending on the architecture ;-) -- Steve