[Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9755 >
On Fri, 20 Aug 2004, Jason Short wrote:
> This patch provides a function distribute() in the utility code:
>
> void distribute(int number, int groups, int *ratios, int *result);
>
> This will distribute "number" elements into "groups" groups with ratios
> given by the elements in "ratios".The resulting division is put into
> the "result" array.
>
> The only user (so far) is the trade disribution code.
Check speed. This code is run very often. Consider doing away with your
asserts and possibly making it inline.
- Per
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code,
Per I. Mathisen <=
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code, Jason Short, 2004/08/21
- [Freeciv-Dev] (PR#9755) provide distribute() in the utility code, Mateusz Stefek, 2004/08/23
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code, Jason Short, 2004/08/23
- [Freeciv-Dev] (PR#9755) provide distribute() in the utility code, Mateusz Stefek, 2004/08/25
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code, Jason Short, 2004/08/25
- [Freeciv-Dev] (PR#9755) provide distribute() in the utility code, Mateusz Stefek, 2004/08/26
- [Freeciv-Dev] (PR#9755) provide distribute() in the utility code, Mateusz Stefek, 2004/08/26
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code, Jason Short, 2004/08/26
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code, Jason Short, 2004/08/26
- [Freeciv-Dev] Re: (PR#9755) provide distribute() in the utility code, Mateusz Stefek, 2004/08/26
|
|