compiler-intel.h 901 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __LINUX_COMPILER_H
  2. #error "Please don't include <linux/compiler-intel.h> directly, include <linux/compiler.h> instead."
  3. #endif
  4. #ifdef __ECC
  5. /* Some compiler specific definitions are overwritten here
  6. * for Intel ECC compiler
  7. */
  8. #include <asm/intrinsics.h>
  9. /* Intel ECC compiler doesn't support gcc specific asm stmts.
  10. * It uses intrinsics to do the equivalent things.
  11. */
  12. #undef barrier
  13. #undef RELOC_HIDE
  14. #define barrier() __memory_barrier()
  15. #define RELOC_HIDE(ptr, off) \
  16. ({ unsigned long __ptr; \
  17. __ptr = (unsigned long) (ptr); \
  18. (typeof(ptr)) (__ptr + (off)); })
  19. /* Intel ECC compiler doesn't support __builtin_types_compatible_p() */
  20. #define __must_be_array(a) 0
  21. #endif
  22. #define uninitialized_var(x) x
  23. #ifndef __HAVE_BUILTIN_BSWAP16__
  24. /* icc has this, but it's called _bswap16 */
  25. #define __HAVE_BUILTIN_BSWAP16__
  26. #define __builtin_bswap16 _bswap16
  27. #endif