An offense specified as a prior felony conviction by reference to a specific code section shall include any prior felony conviction under any predecessor statute of that specified offense that includes all of the elements of that specified offense. The application of this section includes, but is not limited to, all statutes that provide for an enhancement or a term of imprisonment based on a prior conviction or a prior prison term.
Ca. Pen. Code § 668.5