]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Add opcodes for uint and bit shifting.
authorRudolf Polzer <divVerent@gmail.com>
Fri, 3 Jan 2025 23:24:48 +0000 (18:24 -0500)
committerRudolf Polzer <divVerent@gmail.com>
Fri, 3 Jan 2025 23:40:44 +0000 (18:40 -0500)
commit95f366ee21e47e13d44b534db51af11536acda35
tree8fb4ef151f8c7686675d2f9a2d35be149bfb5001
parent10354132418e28f212224edabe4db74119412130
Add opcodes for uint and bit shifting.

- OP_RSHIFT_I
- OP_LSHIFT_I
- OP_LE_U
- OP_LT_U
- OP_DIV_U
- OP_RSHIFT_U

For all other ops FTEQCC emits the _I operations; this is technically
broken but meh. Compile DP with `-fwrapv` if you care.
prvm_edict.c
prvm_exec.c
prvm_execprogram.h