Use 'inline' instead of 'inline_t' in the processing lib
Just use the standard inline keyword with sufficient backwards compatibility defines, similar to how it is done in the main decoder and encoder libraries.
This commit is contained in:
parent
cbe650a3e5
commit
98dd2d91d9
@ -47,15 +47,15 @@
|
||||
|
||||
WELSVP_NAMESPACE_BEGIN
|
||||
|
||||
inline_t void* WelsMemset (void* pPointer, int32_t iValue, uint32_t uiSize) {
|
||||
inline void* WelsMemset (void* pPointer, int32_t iValue, uint32_t uiSize) {
|
||||
return ::memset (pPointer, iValue, uiSize);
|
||||
}
|
||||
|
||||
inline_t void* WelsMemcpy (void* pDst, const void* kpSrc, uint32_t uiSize) {
|
||||
inline void* WelsMemcpy (void* pDst, const void* kpSrc, uint32_t uiSize) {
|
||||
return ::memcpy (pDst, kpSrc, uiSize);
|
||||
}
|
||||
|
||||
inline_t int32_t WelsMemcmp (const void* kpBuf1, const void* kpBuf2, uint32_t uiSize) {
|
||||
inline int32_t WelsMemcmp (const void* kpBuf1, const void* kpBuf2, uint32_t uiSize) {
|
||||
return ::memcmp (kpBuf1, kpBuf2, uiSize);
|
||||
}
|
||||
|
||||
|
@ -68,11 +68,9 @@ typedef int int32_t ;
|
||||
typedef unsigned int uint32_t ;
|
||||
typedef __int64 int64_t ;
|
||||
typedef unsigned __int64 uint64_t ;
|
||||
#define inline_t _inline
|
||||
|
||||
#else // GCC
|
||||
|
||||
#define inline_t inline
|
||||
#if _MSC_VER < 1700
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -84,7 +84,7 @@ WELSVP_NAMESPACE_BEGIN
|
||||
#define GET_METHOD(x) ((x) & 0xff) // mask method as the lowest 8bits
|
||||
#define GET_SPECIAL(x) (((x) >> 8) & 0xff) // mask special flag as 8bits
|
||||
|
||||
inline_t EMethods WelsVpGetValidMethod (int32_t a) {
|
||||
inline EMethods WelsVpGetValidMethod (int32_t a) {
|
||||
int32_t iMethod = GET_METHOD (a);
|
||||
return WelsStaticCast (EMethods, WELS_CLAMP (iMethod, METHOD_NULL + 1, METHOD_MASK - 1));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user