raze-gles/polymer/eduke32/build
helixhorned 54721d7461 Make ksqrt take uint32_t, add helper function uint32_t uhypsq(int32_t,int32_t).
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
2012-07-01 22:11:14 +00:00
..
doc Set union ['] and difference [;] for sector selection in Mapster32; probably fix for crash on clipshape-init; replace tabs in doc/build*.txt with three spaces. 2010-11-20 16:47:18 +00:00
include Make ksqrt take uint32_t, add helper function uint32_t uhypsq(int32_t,int32_t). 2012-07-01 22:11:14 +00:00
obj.gnu Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
obj.msc Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
rsrc Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
src Make ksqrt take uint32_t, add helper function uint32_t uhypsq(int32_t,int32_t). 2012-07-01 22:11:14 +00:00
buildlic.txt Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
MakeDistributions Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
Makefile Fix a thinko in a comment (about commenting) in build/Makefile. 2012-06-26 19:49:50 +00:00
Makefile.deps Build tools: 2012-03-23 20:23:46 +00:00
Makefile.msvc Build tools: 2012-03-23 20:23:46 +00:00
Makefile.shared Add prototypical SDL 2.X support. 2012-06-22 21:39:53 +00:00