Subversion Repositories Kolibri OS

Rev

Rev 948 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. #define  NULL (void*)0
  3.  
  4.  
  5. typedef  unsigned char        u8_t;
  6. typedef  unsigned short int   u16_t;
  7. typedef  unsigned int         u32_t;
  8. typedef  unsigned long long   u64_t;
  9.  
  10. typedef  unsigned int         addr_t;
  11.  
  12. typedef  unsigned int         size_t;
  13. typedef  unsigned int         count_t;
  14. typedef  unsigned int         eflags_t;
  15.  
  16. typedef  unsigned int Bool;
  17.  
  18. #define  TRUE  (Bool)1
  19. #define  FALSE (Bool)0
  20.  
  21. #define min_t(type,x,y) \
  22.         ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
  23. #define max_t(type,x,y) \
  24.         ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
  25.  
  26.  
  27.