@@ -14,7 +14,6 @@ include_HEADERS = \
$(top_srcdir)/platform/linux-generic/include/api/odp_buffer_pool.h \
$(top_srcdir)/platform/linux-generic/include/api/odp_byteorder.h \
$(top_srcdir)/platform/linux-generic/include/api/odp_classification.h \
- $(top_srcdir)/platform/linux-generic/include/api/odp_compiler.h \
$(top_srcdir)/platform/linux-generic/include/api/odp_config.h \
$(top_srcdir)/platform/linux-generic/include/api/odp_coremask.h \
$(top_srcdir)/platform/linux-generic/include/api/odp_crypto.h \
@@ -19,10 +19,8 @@ extern "C" {
#endif
#include <odp_config.h>
-
#include <odp_version.h>
#include <odp_std_types.h>
-#include <odp_compiler.h>
#include <odp_align.h>
#include <odp_hints.h>
#include <odp_debug.h>
@@ -21,7 +21,32 @@ extern "C" {
#include <endian.h>
#include <asm/byteorder.h>
#include <odp_std_types.h>
-#include <odp_compiler.h>
+
+/** @addtogroup odp_compiler_optim
+ * Macro for old compilers
+ * @{
+ */
+
+/** @internal GNU compiler version */
+#define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+
+/**
+ * @internal
+ * Compiler __builtin_bswap16() is not available on all platforms
+ * until GCC 4.8.0 - work around this by offering __odp_builtin_bswap16()
+ * Don't use this function directly, instead see odp_byteorder.h
+ */
+#if GCC_VERSION < 40800
+#define __odp_builtin_bswap16(u16) ((((u16)&0x00ff) << 8)|(((u16)&0xff00) >> 8))
+#else
+#define __odp_builtin_bswap16(u16) __builtin_bswap16(u16)
+#endif
+
+/**
+ * @}
+ */
/** @defgroup odp_compiler_optim ODP COMPILER / OPTIMIZATION
* Macros that check byte order and byte converting operations.
deleted file mode 100644
@@ -1,51 +0,0 @@
-/* Copyright (c) 2014, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-
-/**
- * @file
- *
- * Compiler related
- */
-
-#ifndef ODP_COMPILER_H_
-#define ODP_COMPILER_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** @addtogroup odp_compiler_optim
- * Macro for old compilers
- * @{
- */
-
-/** @internal GNU compiler version */
-#define GCC_VERSION (__GNUC__ * 10000 \
- + __GNUC_MINOR__ * 100 \
- + __GNUC_PATCHLEVEL__)
-
-/**
- * @internal
- * Compiler __builtin_bswap16() is not available on all platforms
- * until GCC 4.8.0 - work around this by offering __odp_builtin_bswap16()
- * Don't use this function directly, instead see odp_byteorder.h
- */
-#if GCC_VERSION < 40800
-#define __odp_builtin_bswap16(u16) ((((u16)&0x00ff) << 8)|(((u16)&0xff00) >> 8))
-#else
-#define __odp_builtin_bswap16(u16) __builtin_bswap16(u16)
-#endif
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
Compiler information should be predominately platform specific and not part of the API. The only part of the API needing these definitions is odp_byteorder.h so move the definition there and delete odp_compiler.h Signed-off-by: Mike Holmes <mike.holmes@linaro.org> --- platform/linux-generic/Makefile.am | 1 - platform/linux-generic/include/api/odp.h | 2 - platform/linux-generic/include/api/odp_byteorder.h | 27 +++++++++++- platform/linux-generic/include/api/odp_compiler.h | 51 ---------------------- 4 files changed, 26 insertions(+), 55 deletions(-) delete mode 100644 platform/linux-generic/include/api/odp_compiler.h