Simple C++ pointer math for joint allocations.