Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

35 rader
939 B

  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. #ifndef _align_h_
  14. #define _align_h_
  15. /* on Mac OS-X and possibly others, ALIGN(x) is defined in param.h, and -Werror chokes on the redef. */
  16. #ifdef ALIGN
  17. #undef ALIGN
  18. #endif
  19. #if defined(__GNUC__)
  20. #define ALIGN(x) __attribute__ ((aligned(x)))
  21. #elif defined(_MSC_VER)
  22. #define ALIGN(x) __declspec(align(x))
  23. #elif defined(__ARMCC_VERSION)
  24. #define ALIGN(x) __align(x)
  25. #else
  26. #define ALIGN(x)
  27. #endif
  28. #endif