types.h 769 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. TinyLoad - a simple region free (original) game launcher in 4k
  3. # This code is licensed to you under the terms of the GNU GPL, version 2;
  4. # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  5. */
  6. // Copyright 2008-2009 Hector Martin <marcan@marcansoft.com>
  7. #ifndef __TYPES_H__
  8. #define __TYPES_H__
  9. typedef volatile unsigned char vu8;
  10. typedef volatile unsigned short vu16;
  11. typedef volatile unsigned int vu32;
  12. typedef volatile unsigned long long vu64;
  13. typedef unsigned char u8;
  14. typedef unsigned short u16;
  15. typedef unsigned int u32;
  16. typedef unsigned long long u64;
  17. typedef char s8;
  18. typedef short s16;
  19. typedef int s32;
  20. typedef long long s64;
  21. #define NULL ((void *)0)
  22. #define ALIGNED(n) __attribute__((aligned(n)))
  23. #endif