ck_cc: Add FORCE_INLINE attribute and remove stale comments.

ck_pring
Samy Al Bahra 9 years ago
parent 3f4b973f8c
commit 414ba224ca

@ -36,6 +36,14 @@
#define CK_CC_RESTRICT #define CK_CC_RESTRICT
#endif #endif
#ifndef CK_CC_INLINE
#define CK_CC_INLINE inline
#endif
#ifndef CK_CC_FORCE_INLINE
#define CK_CC_FORCE_INLINE inline
#endif
#define CK_CC_DECONST_PTR(X) ((void *)(uintptr_t)(X)) #define CK_CC_DECONST_PTR(X) ((void *)(uintptr_t)(X))
/* /*

@ -48,15 +48,13 @@
#endif /* __x86_64__ || __x86__ */ #endif /* __x86_64__ || __x86__ */
#endif #endif
/*
* If optimizations are turned on, then force inlining.
*/
#ifdef __OPTIMIZE__ #ifdef __OPTIMIZE__
#define CK_CC_INLINE CK_CC_UNUSED inline #define CK_CC_INLINE CK_CC_UNUSED inline
#else #else
#define CK_CC_INLINE CK_CC_UNUSED #define CK_CC_INLINE CK_CC_UNUSED
#endif #endif
#define CK_CC_FORCE_INLINE CK_CC_UNUSED __attribute__((always_inline)) inline
#define CK_CC_RESTRICT restrict #define CK_CC_RESTRICT restrict
/* /*

Loading…
Cancel
Save