@@ -393,6 +393,7 @@ AC_MSG_RESULT([
libdir: ${libdir}
includedir: ${includedir}
testdir: ${testdir}
+ WITH_ARCH: ${WITH_ARCH}
cc: ${CC}
cppflags: ${CPPFLAGS}
@@ -14,6 +14,7 @@ INPUT = $(SRCDIR)/doc \
$(SRCDIR)/doc/users-guide \
$(SRCDIR)/include \
$(SRCDIR)/platform/$(WITH_PLATFORM)/include/odp \
+ $(SRCDIR)/platform/$(WITH_PLATFORM)/arch/$(WITH_ARCH) \
$(SRCDIR)/helper/include
FILE_PATTERNS = *.h odp*.c *.dox
RECURSIVE = YES
@@ -270,6 +270,7 @@ DX_ENV_APPEND(SRCDIR, $srcdir)
DX_ENV_APPEND(BUILDDIR, $builddir)
DX_ENV_APPEND(VERSION, $VERSION)
DX_ENV_APPEND(WITH_PLATFORM, $with_platform)
+DX_ENV_APPEND(WITH_ARCH, $ARCH)
DX_ENV_APPEND(PROJECT, $DX_PROJECT)
DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
@@ -607,4 +608,4 @@ echo DX_FLAG_html=$DX_FLAG_html
#echo DX_FLAG_pdf=$DX_FLAG_pdf
#echo DX_FLAG_ps=$DX_FLAG_ps
#echo DX_ENV=$DX_ENV
-])
\ No newline at end of file
+])
@@ -11,6 +11,16 @@
extern "C" {
#endif
+/** @ingroup odp_compiler_optim
+ * @{
+ */
+
+#define ODP_CACHE_LINE_SIZE 64
+
+/**
+ * @}
+ */
+
static inline void odp_cpu_pause(void)
{
#ifdef __SSE2__
@@ -31,11 +31,7 @@ extern "C" {
#define ODP_FIELD_SIZEOF(type, member) sizeof(((type *)0)->member)
-#if defined __x86_64__ || defined __i386__
-
-#define ODP_CACHE_LINE_SIZE 64
-
-#elif defined __arm__ || defined __aarch64__
+#if defined __arm__ || defined __aarch64__
#define ODP_CACHE_LINE_SIZE 64
@@ -47,8 +43,6 @@ extern "C" {
#define ODP_CACHE_LINE_SIZE 64
-#else
-#error GCC target not found
#endif
#else
@@ -65,6 +59,7 @@ extern "C" {
* @}
*/
+#include <odp/cpu_arch.h>
#include <odp/api/align.h>
#ifdef __cplusplus