diff mbox

[v2,02/18] include: move force/bitwise into odp_compiler.h

Message ID 1403027720-9738-3-git-send-email-taras.kondratiuk@linaro.org
State RFC
Headers show

Commit Message

Taras Kondratiuk June 17, 2014, 5:55 p.m. UTC
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 include/odp_byteorder.h |   14 --------------
 include/odp_compiler.h  |   14 ++++++++++++++
 2 files changed, 14 insertions(+), 14 deletions(-)
diff mbox

Patch

diff --git a/include/odp_byteorder.h b/include/odp_byteorder.h
index 80f6081..22e5a64 100644
--- a/include/odp_byteorder.h
+++ b/include/odp_byteorder.h
@@ -48,20 +48,6 @@  extern "C" {
 #endif
 
 
-/* for use with type checkers such as sparse */
-#ifdef __CHECKER__
-/** @internal bitwise attribute */
-#define __odp_bitwise	__attribute__((bitwise))
-/** @internal force attribute */
-#define __odp_force     __attribute__((force))
-#else
-/** @internal bitwise attribute */
-#define __odp_bitwise
-/** @internal force attribute */
-#define __odp_force
-#endif
-
-
 typedef uint16_t __odp_bitwise	uint16le_t; /**< unsigned 16bit little endian */
 typedef uint16_t __odp_bitwise	uint16be_t; /**< unsigned 16bit big endian */
 
diff --git a/include/odp_compiler.h b/include/odp_compiler.h
index a4e6e78..5ec0262 100644
--- a/include/odp_compiler.h
+++ b/include/odp_compiler.h
@@ -35,6 +35,20 @@  extern "C" {
 #define __odp_builtin_bswap16(u16) __builtin_bswap16(u16)
 #endif
 
+
+/* for use with type checkers such as sparse */
+#ifdef __CHECKER__
+/** @internal bitwise attribute */
+#define __odp_bitwise	__attribute__((bitwise))
+/** @internal force attribute */
+#define __odp_force     __attribute__((force))
+#else
+/** @internal bitwise attribute */
+#define __odp_bitwise
+/** @internal force attribute */
+#define __odp_force
+#endif
+
 #ifdef __cplusplus
 }
 #endif