No description
Find a file
hendricks266 e1e5e338dc New commands: "divr", "divru", "divrd"
divr <dividend> <divisor>

Divide gamevar <dividend> by <divisor> and round (aka round to nearest) the result. A result of 0.5 will equal 1.

divru <dividend> <divisor>

Divide gamevar <dividend> by <divisor> and round up (aka round away from zero) the result.

Additionally "divrd" can be used to round down (aka round toward zero), which is equivalent to the current div command as tested on x86, ARM, and PowerPC.

Note that "shiftr" rounds up negative values.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6611 1a8010ca-5511-0410-912e-c29ae57300e0
2018-01-29 02:14:04 +00:00
jit The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
package The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
platform Switch MSVC Makefile to target the VS2015.3 toolchain instead of the VS2017 toolchain, to work around a compiler bug 2017-12-09 02:56:22 +00:00
source New commands: "divr", "divru", "divrd" 2018-01-29 02:14:04 +00:00
.gitignore Add perl.exe.stackdump to .gitignore. 2017-06-09 06:38:33 +00:00
_clang-format The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
Android.mk Replace sound_func function pointer parameter and associate functions for hardcoded ANMs with equivalent animsounds arrays. 2017-06-25 11:24:34 +00:00
Common.mak Rename CLANG_DEBUG_FLAGS -> ASAN_FLAGS in makefile and enable them for GCC, because GCC supports ASan these days 2017-12-10 03:24:39 +00:00
GNUmakefile Rename CLANG_DEBUG_FLAGS -> ASAN_FLAGS in makefile and enable them for GCC, because GCC supports ASan these days 2017-12-10 03:24:39 +00:00