arch-arm.h 732 B

12345678910111213141516171819202122232425
  1. /*-------------------------------------------------------------------------
  2. *
  3. * arch-arm.h
  4. * Atomic operations considerations specific to ARM
  5. *
  6. * Portions Copyright (c) 2013-2016, PostgreSQL Global Development Group
  7. *
  8. * NOTES:
  9. *
  10. * src/include/port/atomics/arch-arm.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. /* intentionally no include guards, should only be included by atomics.h */
  15. #ifndef INSIDE_ATOMICS_H
  16. #error "should be included via atomics.h"
  17. #endif
  18. /*
  19. * 64 bit atomics on arm are implemented using kernel fallbacks and might be
  20. * slow, so disable entirely for now.
  21. * XXX: We might want to change that at some point for AARCH64
  22. */
  23. #define PG_DISABLE_64_BIT_ATOMICS