Update of patch #1948 (project freeciv):
Status: Ready For Test = Done
Assigned to:None = cazfi
Open/Closed:Open = Closed
Follow-up Comment #2, patch #1948 (project freeciv):
Anyway small functions like them are usually treat as inline by the compiler.
So using pow() would just make the code less efficient, not gaining anything.
An inline square() function would preserve the exact current behaviour, not
sure it
URL:
http://gna.org/patch/?1948
Summary: Remove unit_att_rating_sq, replace only use with
pow.
Project: Freeciv
Submitted by: nixeagle
Submitted on: Friday 09/10/2010 at 22:37
Category: ai
Priority: 1 -
Follow-up Comment #1, patch #1948 (project freeciv):
I ran M-x rgrep RET _sq( RET on the working directory and found that the vast
majority of functions doing nothing but squaring something lie in aiunit.c.
The one replacement with pow() does not exist in a loop and thus really
should not be a