]> 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)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 9 Jan 2014 14:17:38 +0000 (15:17 +0100)
commitb5c596b76ceb1249b5128387c3d439fad31dba1f
tree16734e88874f71ec914193d975bd495d642871a2
parentbc200c582457b4166be8f3fd9fb27a37495ad6b7
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
::stable-branch::merge=91efd4d4260983eae86f644ff1813cc391d3c27e
prvm_exec.c
prvm_execprogram.h