On Tue, Jul 27, 2010 at 4:15 AM, Misha Koshelev <[email protected]> wrote:
> Why do you ask?
>
> Are you aware of a good way to share code between tests and the actual 
> function?

That's why I was asking, as I suppose you can't use functions from the
test in the implementation, nor have internal functions used in the
tests. Only way I see it is to have something like mesh_utils.[ch]
which is linked with both the dll and the test, but I'm not sure if
that's acceptable. Maybe someone else can answer that.

A little observation is that you don't really need to precompute both
tables, just the one for phi (if you compute sin and cos of current
theta outside the inner loop).

Octavian


Reply via email to