On Jan 16, 7:58 am, "Shirsoft" <(EMail Removed)> wrote:
> 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][I] = VOL[K1][J1][I] + VAL\
> + VOL[K1][J][I1]  VOL[K1][J1][I1]\
> + VOL[K][J1][I1]  VOL[K1][J1][I1]
>
> There are 2 more similar but bigger #define used by my program. They
> are used a total of 20 times in the code.
Anything wrong with a normal inlined function?

Erik Wikström
