KeccakP-align_avx2.h 908 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
  3. Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby
  4. denoted as "the implementer".
  5. For more information, feedback or questions, please refer to our websites:
  6. http://keccak.noekeon.org/
  7. http://keyak.noekeon.org/
  8. http://ketje.noekeon.org/
  9. To the extent possible under law, the implementer has waived all copyright
  10. and related or neighboring rights to the source code in this file.
  11. http://creativecommons.org/publicdomain/zero/1.0/
  12. */
  13. #pragma once
  14. /* on Mac OS-X and possibly others, ALIGN(x) is defined in param.h, and -Werror chokes on the redef. */
  15. #ifdef ALIGN
  16. #undef ALIGN
  17. #endif
  18. #if defined(__GNUC__)
  19. #define ALIGN(x) __attribute__ ((aligned(x)))
  20. #elif defined(_MSC_VER)
  21. #define ALIGN(x) __declspec(align(x))
  22. #elif defined(__ARMCC_VERSION)
  23. #define ALIGN(x) __align(x)
  24. #else
  25. #define ALIGN(x)
  26. #endif