|
From: Zachary U. <ne...@st...> - 2002-12-11 08:07:57
|
At 02:15 AM 12/11/02, Sebastien Morand wrote: >Hi Zach, > >Not at all, you can try to put the word inline in this case. If your >function isn't too big, and isn't recursive (and have not weird >properties, like calling a funtion calling itself) this function will >be certainly inline everywhere you will use it so it will be faster >since the code of the function will be direclty put instead of the >call of the function. It it can't inline it and you put even so the >word inline, the worst you can get is a warning. Note that if you >compile with -O3 (gcc option) every function will be try to put as an >inline function. > >The way I suggest was just to have the declaration in the same time >than the definition to be sure that the compiler use your function. If >you put your function in another module and link the module together, >the compiler will use the stdlib function :( [snip] Merci beaucoup Sebastien. Je vois :) C'est bon~ Zach Zachary Uram John 3:16 <>< |