@@ -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 */
@@ -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
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(-)