9.8 __inline

The __inline keyword suggests to the compiler that it compiles a C or C++ function inline, if it is sensible to do so.

The semantics of __inline are exactly the same as those of the inline keyword. However, inline is not available in C90.
__inline is a storage class qualifier. It does not affect the type of a function.


__inline int f(int x)
    return x*5+1;
int g(int x, int y)
    return f(x) + f(y);
Related concepts
4.20 Inline functions
Related reference
7.66 --forceinline
7.87 --inline, --no_inline
9.6 __forceinline
9.30 __attribute__((always_inline)) function attribute
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.