askMsb) << offset;
    uint baseMask = ~insertMask;
    return (base & baseMask) | ((insert << offset) & insertMask);
}
