I am just saying I know inline keyword. But what is always_inline. Thanks for replies and explanations. I got it now.
Regards, Sri. On Sat, Sep 25, 2010 at 4:48 AM, Michael Blizek <[email protected]> wrote: > Hi! > > On 18:56 Fri 24 Sep , Sri Ram Vemulpali wrote: >> Hi all, >> >> I am encountering alot macros in the code. I did not understand what >> those macro means. >> >> Can anyone explain them and the use of them putting them like that. >> >> "unlikely" > > likely() and unlikely() are wrappers around gcc extensions to give hints about > whether a given branch will likely be taken or not. When done correctly, this > can improve performance. > >> "always_inline" -- defined at the signature of the function. > > This can be used because "inline" is not always inlined. There should be a gcc > option which causes all inline code to be not inlined. > >> "inline" -- I know inline keyword in compiler is used to place the >> code in to the caller function at the time of compiler, but why >> declared as macro > > Where do you see inline declared as a macro? > > -Michi > -- > programing a layer 3+4 network protocol for mesh networks > see http://michaelblizek.twilightparadox.com > > -- Regards, Sri. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [email protected] Please read the FAQ at http://kernelnewbies.org/FAQ
