aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/odp/api/spec/compiler.h')
-rw-r--r--include/odp/api/spec/compiler.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/include/odp/api/spec/compiler.h b/include/odp/api/spec/compiler.h
deleted file mode 100644
index c88350e2c..000000000
--- a/include/odp/api/spec/compiler.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Copyright (c) 2014, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-
-/**
- * @file
- *
- * Compiler related
- */
-
-#ifndef ODP_API_COMPILER_H_
-#define ODP_API_COMPILER_H_
-#include <odp/visibility_begin.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
-
-#include <odp/visibility_end.h>
-#endif