Micro-optimize basis_ps() to remove a data dependency.