thermal: exynos: Add TMU support for Exynos7 SoC
[linux-2.6/btrfs-unstable.git] / include / linux / compiler-intel.h
blobba147a1727e6d2fc22c7899fcb5830803c629f41
1 #ifndef __LINUX_COMPILER_H
2 #error "Please don't include <linux/compiler-intel.h> directly, include <linux/compiler.h> instead."
3 #endif
5 #ifdef __ECC
7 /* Some compiler specific definitions are overwritten here
8 * for Intel ECC compiler
9 */
11 #include <asm/intrinsics.h>
13 /* Intel ECC compiler doesn't support gcc specific asm stmts.
14 * It uses intrinsics to do the equivalent things.
16 #undef RELOC_HIDE
17 #undef OPTIMIZER_HIDE_VAR
19 #define RELOC_HIDE(ptr, off) \
20 ({ unsigned long __ptr; \
21 __ptr = (unsigned long) (ptr); \
22 (typeof(ptr)) (__ptr + (off)); })
24 /* This should act as an optimization barrier on var.
25 * Given that this compiler does not have inline assembly, a compiler barrier
26 * is the best we can do.
28 #define OPTIMIZER_HIDE_VAR(var) barrier()
30 /* Intel ECC compiler doesn't support __builtin_types_compatible_p() */
31 #define __must_be_array(a) 0
33 #endif
35 #ifndef __HAVE_BUILTIN_BSWAP16__
36 /* icc has this, but it's called _bswap16 */
37 #define __HAVE_BUILTIN_BSWAP16__
38 #define __builtin_bswap16 _bswap16
39 #endif