有些函数太短了,那么用它来__forceinline
代替它是一个好地方__inline
吗?
__inline void foo(){ //Optimized call
//some commands
}
__forceinline void fast_foo(){ //More "inline" - Does it perform faster than inline?
//some commands
}
有些函数太短了,那么用它来__forceinline
代替它是一个好地方__inline
吗?
__inline void foo(){ //Optimized call
//some commands
}
__forceinline void fast_foo(){ //More "inline" - Does it perform faster than inline?
//some commands
}