mpi_type.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Copyright (c) 2000-2008 LSI Corporation.
  3. *
  4. *
  5. * Name: mpi_type.h
  6. * Title: MPI Basic type definitions
  7. * Creation Date: June 6, 2000
  8. *
  9. * mpi_type.h Version: 01.05.02
  10. *
  11. * Version History
  12. * ---------------
  13. *
  14. * Date Version Description
  15. * -------- -------- ------------------------------------------------------
  16. * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
  17. * 06-06-00 01.00.01 Update version number for 1.0 release.
  18. * 11-02-00 01.01.01 Original release for post 1.0 work
  19. * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER.
  20. * 08-08-01 01.02.01 Original release for v1.2 work.
  21. * 05-11-04 01.03.01 Original release for MPI v1.3.
  22. * 08-19-04 01.05.01 Original release for MPI v1.5.
  23. * --------------------------------------------------------------------------
  24. */
  25. #ifndef MPI_TYPE_H
  26. #define MPI_TYPE_H
  27. /*******************************************************************************
  28. * Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER
  29. * is defined to be a near pointer. MPI_POINTER can be defined as a far pointer
  30. * by defining MPI_POINTER as "far *" before this header file is included.
  31. */
  32. #ifndef MPI_POINTER
  33. #define MPI_POINTER *
  34. #endif
  35. /*****************************************************************************
  36. *
  37. * B a s i c T y p e s
  38. *
  39. *****************************************************************************/
  40. typedef signed char S8;
  41. typedef unsigned char U8;
  42. typedef signed short S16;
  43. typedef unsigned short U16;
  44. typedef int32_t S32;
  45. typedef u_int32_t U32;
  46. typedef struct _S64
  47. {
  48. U32 Low;
  49. S32 High;
  50. } S64;
  51. typedef struct _U64
  52. {
  53. U32 Low;
  54. U32 High;
  55. } U64;
  56. /****************************************************************************/
  57. /* Pointers */
  58. /****************************************************************************/
  59. typedef S8 *PS8;
  60. typedef U8 *PU8;
  61. typedef S16 *PS16;
  62. typedef U16 *PU16;
  63. typedef S32 *PS32;
  64. typedef U32 *PU32;
  65. typedef S64 *PS64;
  66. typedef U64 *PU64;
  67. #endif