Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_COMPILER_TYPES_H
0003 #error "Please don't include <linux/compiler-intel.h> directly, include <linux/compiler.h> instead."
0004 #endif
0005 
0006 #ifdef __ECC
0007 
0008 /* Compiler specific definitions for Intel ECC compiler */
0009 
0010 #include <asm/intrinsics.h>
0011 
0012 /* Intel ECC compiler doesn't support gcc specific asm stmts.
0013  * It uses intrinsics to do the equivalent things.
0014  */
0015 
0016 #define barrier() __memory_barrier()
0017 #define barrier_data(ptr) barrier()
0018 
0019 #define RELOC_HIDE(ptr, off)                    \
0020   ({ unsigned long __ptr;                   \
0021      __ptr = (unsigned long) (ptr);             \
0022     (typeof(ptr)) (__ptr + (off)); })
0023 
0024 /* This should act as an optimization barrier on var.
0025  * Given that this compiler does not have inline assembly, a compiler barrier
0026  * is the best we can do.
0027  */
0028 #define OPTIMIZER_HIDE_VAR(var) barrier()
0029 
0030 #endif
0031 
0032 /* icc has this, but it's called _bswap16 */
0033 #define __HAVE_BUILTIN_BSWAP16__
0034 #define __builtin_bswap16 _bswap16