chg: improved p_GetAllDenom