You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/11 02:52:14 UTC

[GitHub] [incubator-nuttx] hartmannathan commented on pull request #5201: inline: switch from inline to inline_function

hartmannathan commented on pull request #5201:
URL: https://github.com/apache/incubator-nuttx/pull/5201#issuecomment-1009551995


   > In this initial change I start replacing `inline` with `inline_function` (that is currently a force inline actually) so now I'm thinking of:
   > 
   > 1. Rework `inline_function` to be replacement for `inline`
   > 2. Introduce new `force_inline` to handle force inline case (the current `inline_function`).
   
   This makes sense to me.
   
   `inline_function` means "hint the compiler to inline this function, but compiler may decide not to"
   
   `force_inline_function` means "tell the compiler it must inline this function"
   
   If we discover a compiler that supports `inline_function` but not `force_inline_function` then on that compiler we will "degrade gracefully" and `force_inline_function` will mean the same thing as `inline_function`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org