Implemented edge case handling for cmult and cdiv.