mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 17:32:13 +00:00
54721d7461
uhypsq calculates the hypotenuse using unsigned multiplication. This is permissible since for arbitrary int32s a and b, the following holds in two's complement arithmetic: (int32_t)((uint32_t)a * b) == (int32_t)((int64_t)a * b) ("Signed and unsigned multiplication is the same on the bit level.") This fixes various overflows where wall lengths for walls of length > 46340 are calculated, but does not rid us of other overflows in the same vein (usually dot products between vectors where one point is a wall vertex and the other a position in a sector). git-svn-id: https://svn.eduke32.com/eduke32@2791 1a8010ca-5511-0410-912e-c29ae57300e0 |
||
---|---|---|
.. | ||
Apple | ||
build | ||
eobj | ||
eobj_win | ||
installer | ||
obj | ||
obj_win | ||
psd | ||
rsrc | ||
samples | ||
source | ||
Wii | ||
Windows | ||
backtrace.dll | ||
buildlic.txt | ||
ChangeLog | ||
ChangeLog.html | ||
eduke32.sln | ||
eduke32.vcproj | ||
eduke32.vcxproj | ||
eduke32.vcxproj.filters | ||
eduke32.vcxproj.user | ||
GNU.TXT | ||
libiconv2.dll | ||
libintl3.dll | ||
m32help.hlp | ||
MakeDistributions | ||
Makefile | ||
Makefile.common | ||
Makefile.deps | ||
Makefile.msvc | ||
names.h | ||
nedmalloc.dll | ||
osxbuild.sh | ||
SEHELP.HLP | ||
STHELP.HLP | ||
tiles.cfg | ||
wiibuild.bat |