mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-05 20:41:06 +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 |
||
---|---|---|
.. | ||
doc | ||
include | ||
obj.gnu | ||
obj.msc | ||
rsrc | ||
src | ||
buildlic.txt | ||
MakeDistributions | ||
Makefile | ||
Makefile.deps | ||
Makefile.msvc | ||
Makefile.shared |