/media/libnestegg/src/align.h

http://github.com/zpao/v8monkey · C Header · 36 lines · 15 code · 6 blank · 15 comment · 0 complexity · 4c864dcf60a40926674a1f0046789c95 MD5 · raw file

  1. /*
  2. * Copyright (c) 2004-2010 Alex Pankratov. All rights reserved.
  3. *
  4. * Hierarchical memory allocator, 1.2.1
  5. * http://swapped.cc/halloc
  6. */
  7. /*
  8. * The program is distributed under terms of BSD license.
  9. * You can obtain the copy of the license by visiting:
  10. *
  11. * http://www.opensource.org/licenses/bsd-license.php
  12. */
  13. #ifndef _LIBP_ALIGN_H_
  14. #define _LIBP_ALIGN_H_
  15. /*
  16. * a type with the most strict alignment requirements
  17. */
  18. union max_align
  19. {
  20. char c;
  21. short s;
  22. long l;
  23. int i;
  24. float f;
  25. double d;
  26. void * v;
  27. void (*q)(void);
  28. };
  29. typedef union max_align max_align_t;
  30. #endif