Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2002:
[Freeciv-Dev] Re: "division by zero" error during compilation (PR#1954)
Home

[Freeciv-Dev] Re: "division by zero" error during compilation (PR#1954)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: "division by zero" error during compilation (PR#1954)
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 13 Sep 2002 16:41:35 +0200

On Fri, Sep 13, 2002 at 10:34:15AM -0400, Ross W. Wetmore wrote:
> 
> Note, the poor interface and implementation for the macro is the problem,
> not anything fundamental.

Yes the implementation was the problem.

> The macro has a clean safe form in the corecleanups which use rotationally
> ordered directions. Here the interface defines any value which can be
> wrapped to a 2*pi range or the distinct circular subset of points denoting
> adjacent tiles in this implementation.

No comment about the rotationally ordered directions.

> The safe version is also much faster than the "iterate over all
> possibilities and choose one" approach which clearly has scalability
> problems extending itself to infinitely wrapped ranges.

We are still talking about DIR_CW? There is no iteration. You may mean
base_get_direction_for_step?!

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "Real Users find the one combination of bizarre
   input values that shuts down the system for days."


[Prev in Thread] Current Thread [Next in Thread]