Fast sb_divappr_q code.