[lkml]   [2020]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH net-next] net: Remove unnecessary intermediate variables
On Sat, 2020-08-22 at 13:59 -0700, David Miller wrote:
> From: Joe Perches <>
> Date: Sat, 22 Aug 2020 13:39:28 -0700
> > It _might_ be slightly faster to use inlines
> We are not using the inline directive in foo.c files and are letting
> the compiler decide.
> Please don't give out advice like this.

Actually, I checked with and without inline
before posting the proposal.

The compiler didn't inline the code without it.
Not even with just static inline.
For gcc 9.3 only the __always_inline did.
That's the only version I checked.

 \ /
  Last update: 2020-08-22 23:04    [W:0.037 / U:6.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site