Re: regarding synchronization code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
<michi1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux