Tartarus CVS: sdlgames simon

tartarus-commits@lists.tartarus.org tartarus-commits@lists.tartarus.org
Sat, 31 Aug 2002 11:33:28 +0100


CVSROOT:	/home/cvs
Module name:	sdlgames
Changes by:	simon	02/08/31 11:33:28

Modified files:
	sumo           : sumo.c 

Log message:
When linking statically, for some reason PS2 Linux can't find libm
(presumably there isn't a static one installed or something). So we
can't use sqrt(). Fortunately, since all we needed was the square
roots of integers as integers, it's easy enough to provide a small
custom implementation that's adequate for our needs. In fact it's
probably faster than the full-blown FP sqrt() in any case!