git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/3] ewok_rlw.h: add missing 'inline' to function definition

From
Jeff King <peff@peff.net>
Date
Oct 27, 2018, 06:29 UTC
Message-ID
<20181027062909.GB16664@sigill.intra.peff.net>
In-Reply-To
<1a465da6-d139-5880-72ff-c612b42c3b8f@ramsayjones.plus.com>
On Sat, Oct 27, 2018 at 02:52:05AM +0100, Ramsay Jones wrote:
Show 6 quoted lines
> The 'ewok_rlw.h' header file contains the rlw_get_run_bit() function
> definition, which is marked as 'static' but not 'inline'. At least when
> compiled by gcc, with the default -O2 optimization level, the function
> is actually inlined and leaves no static version in the ewah_bitmap.o
> and ewah_rlw.o object files. Despite this, add the missing 'inline'
> keyword to better describe the intended behaviour.
Yep, this makes sense. Thanks!
-Peff
Previous: Ramsay Jones
Message 2 of 2 in “ewok_rlw.h: add missing 'inline' to function definition”
  1. 2/3 ewok_rlw.h: add missing 'inline' to function definitionRamsay Jones, Oct 27, 2018
  2. Jeff KingOct 27, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.