]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Use an explicit jump table for QCVM instruction dispatch.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 7 Jan 2014 19:22:59 +0000 (19:22 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 7 Jan 2014 19:22:59 +0000 (19:22 +0000)
commit91efd4d4260983eae86f644ff1813cc391d3c27e
tree16734e88874f71ec914193d975bd495d642871a2
parent15f3ecf8b59f74d65d3382c729034790650f6264
Use an explicit jump table for QCVM instruction dispatch.

Also, duplicate the dispatch into the end of each case for additional
speedup (each of these branches gets a separate branch prediction slot
on many CPUs, which pays off quickly).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12044 d7cf8633-e32d-0410-b094-e92efae38249
prvm_exec.c
prvm_execprogram.h