Micro template library A library for building device drivers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

32 lignes
689 B

  1. /*!
  2. * \file utl/core/types.h
  3. * \brief Basic type alias support
  4. */
  5. #ifndef __utl_core_types_h__
  6. #define __utl_core_types_h__
  7. #include <cstddef>
  8. #include <cstdint>
  9. //#include <type_traits>
  10. namespace utl {
  11. //! \name byte and word types
  12. //! @{
  13. using byte_t = uint8_t; //!< 8 bits wide
  14. using word_t = uint16_t; //!< 16 bits wide
  15. using dword_t = uint32_t; //!< 32 bits wide
  16. //! @}
  17. //! \name size and index
  18. //! @{
  19. using size_t = std::size_t;
  20. using index_t = size_t; //!< index_t and size_t mend to be interchangeable
  21. using ptrdiff_t= std::ptrdiff_t;
  22. //! @}
  23. }
  24. #endif /* __utl_core_types_h__ */