mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-21 16:19:23 +08:00
[mpp_common]: use __inline to replace C++ inline
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@271 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -61,12 +61,12 @@ extern "C" {
|
||||
RK_S32 mpp_log2(RK_U32 v);
|
||||
RK_S32 mpp_log2_16bit(RK_U32 v);
|
||||
|
||||
static inline RK_S32 mpp_ceil_log2(RK_S32 x)
|
||||
static __inline RK_S32 mpp_ceil_log2(RK_S32 x)
|
||||
{
|
||||
return mpp_log2((x - 1) << 1);
|
||||
}
|
||||
|
||||
static inline RK_S32 mpp_clip(RK_S32 a, RK_S32 amin, RK_S32 amax)
|
||||
static __inline RK_S32 mpp_clip(RK_S32 a, RK_S32 amin, RK_S32 amax)
|
||||
{
|
||||
if (a < amin) return amin;
|
||||
else if (a > amax) return amax;
|
||||
|
Reference in New Issue
Block a user