转载自:https://www.cnblogs.com/KellyHuang/p/4001470.html 在大多数机器上,函数调用does a lot of work:在调用函数前保存寄存器,调用结束后利用寄存器恢复现场:需要复制函数参数:程序跳转到新的位置执行... 内敛函数(inline function)则没有这个问题,简单的我们可以这样理解:Inline即“In line” 为什么说“In line”呢,先看内敛函数的声明: // inline version: find the sh…