S
Shirsoft
I have used a #define to reduce code size but it greatly increases the
compile time (from a few secs to 5 mins)
The #define is quite simple
#define UPDATE_VOL_SLICE(VOL,I,J,K, VAL)\
VOL[K][J] = VOL[K-1][J-1] + VAL\
+ VOL[K-1][J][I-1] - VOL[K-1][J-1][I-1]\
+ VOL[K][J-1][I-1] - VOL[K-1][J-1][I-1]
There are 2 more similar but bigger #define used by my program. They
are used a total of 20 times in the code.
Thanks
Shireesh
compile time (from a few secs to 5 mins)
The #define is quite simple
#define UPDATE_VOL_SLICE(VOL,I,J,K, VAL)\
VOL[K][J] = VOL[K-1][J-1] + VAL\
+ VOL[K-1][J][I-1] - VOL[K-1][J-1][I-1]\
+ VOL[K][J-1][I-1] - VOL[K-1][J-1][I-1]
There are 2 more similar but bigger #define used by my program. They
are used a total of 20 times in the code.
Thanks
Shireesh