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
#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))
/*

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

Loading…
Cancel
Save