On Wed, 18 Aug 2004, Malcolm J. Currie wrote:
> > > Funniest thing is, I just looked at SURF and I suddenly realised that it
> > > uses pointer arithmetic everywhere for sending slices into subroutines.
>
> Complain to the author.
>
I inherited this style from JFL :-)
It gets better, since SURF uses a wrapped memory allocator that uses PSX_
to allocate 8 bytes more memory than requesed (4 bytes above and 4 extra
at the start) to track buffer overflows, the pointer returned by the
allocator has not been registered with CNF so CNF_PVAL won't work.
I'm inclined to remove the trickery and simply rely on valgrind to check
this sort of thing...
PS SURF purports to have Allan variance calculation in a subroutine
because one of the original displays for SCUBA on the vax was to display
allan variance.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|