compiler-intel.h 869 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef __HAVE_BUILTIN_BSWAP16__
  23. /* icc has this, but it's called _bswap16 */
  24. #define __HAVE_BUILTIN_BSWAP16__
  25. #define __builtin_bswap16 _bswap16
  26. #endif