raze-gles/source
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
..
audiolib Fixed race condition where XMP voices could be played by the audio driver thread before they were fully initialized or fully freed 2017-12-17 02:03:52 +00:00
build Fix some preprocessor logic errors regrading GL ES on ARM devices with desktop operating systems. 2018-01-28 04:30:46 +00:00
duke3d New commands: "divr", "divru", "divrd" 2018-01-29 02:14:04 +00:00
enet The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
etcpak Bring the previous commit into effect. 2017-02-01 10:20:54 +00:00
kenbuild KenBuild: Fix OSD_SetParameters signature. 2017-08-06 13:44:36 +00:00
libxmp-lite Add support for MTM modules. 2017-10-15 23:09:59 +00:00
lpeg LPeg: Necessary changes for building in our environment and with our project. See lpeg-lunatic.patch. 2017-06-09 06:39:18 +00:00
mact tabs -> spaces 2017-12-02 12:42:31 +00:00
sw KenBuild, SW: Fix screencapture signature. 2017-08-06 13:44:32 +00:00
tools/src Route all inclusion of libc headers and most of POSIX headers through compat.h. 2017-02-25 08:15:36 +00:00