IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 17, 2004, 10:59:34 AM (22 years ago)
Author:
desonia
Message:

added the ps-specific typedefs (psU8, psU16, etc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psType.h

    r693 r711  
    1919 *  @author Ross Harman, MHPCC
    2020 *
    21  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2004-05-15 00:14:56 $
     21 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2004-05-17 20:59:34 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141 *
    4242 */
     43
     44typedef uint8_t         psU8;           ///< 8-bit unsigned int
     45typedef uint16_t        psU16;          ///< 16-bit unsigned int
     46typedef uint32_t        psU32;          ///< 32-bit unsigned int
     47typedef uint64_t        psU64;          ///< 64-bit unsigned int
     48typedef int8_t          psS8;           ///< 8-bit signed int
     49typedef int16_t         psS16;          ///< 16-bit signed int
     50typedef int32_t         psS32;          ///< 32-bit signed int
     51typedef int64_t         psS64;          ///< 64-bit signed int
     52typedef float           psF32;          ///< 32-bit floating point
     53typedef double          psF64;          ///< 64-bit floating point
     54typedef complex float   psC32;          ///< complex with 32-bit floating point Real and Imagary numbers
     55typedef complex double  psC64;          ///< complex with 64-bit floating point Real and Imagary numbers
     56
    4357typedef enum {
    44     PS_TYPE_INT8 = 0x101,              ///< Character.
    45     PS_TYPE_INT16 = 0x102,             ///< Short integer.
    46     PS_TYPE_INT32 = 0x104,             ///< Integer.
    47     PS_TYPE_INT64 = 0x108,             ///< Long integer.
    48     PS_TYPE_UINT8 = 0x301,             ///< Unsigned character.
    49     PS_TYPE_UINT16 = 0x302,            ///< Unsigned short integer.
    50     PS_TYPE_UINT32 = 0x304,            ///< Unsigned integer.
    51     PS_TYPE_UINT64 = 0x308,            ///< Unsigned long integer.
    52     PS_TYPE_FLOAT = 0x404,             ///< Single-precision Floating point.
    53     PS_TYPE_DOUBLE = 0x408,            ///< Double-precision floating point.
    54     PS_TYPE_COMPLEX_FLOAT = 0x808,     ///< Complex numbers consisting of single-precision floating point.
    55     PS_TYPE_COMPLEX_DOUBLE = 0x810,    ///< Complex numbers consisting of double-precision floating point.
    56     PS_TYPE_PTR = 0x00,               ///< Something else that's not supported for arithmetic.}
     58    PS_TYPE_INT8             = 0x101,   ///< Character.
     59    PS_TYPE_INT16            = 0x102,   ///< Short integer.
     60    PS_TYPE_INT32            = 0x104,   ///< Integer.
     61    PS_TYPE_INT64            = 0x108,   ///< Long integer.
     62    PS_TYPE_UINT8            = 0x301,   ///< Unsigned character.
     63    PS_TYPE_UINT16           = 0x302,   ///< Unsigned short integer.
     64    PS_TYPE_UINT32           = 0x304,   ///< Unsigned integer.
     65    PS_TYPE_UINT64           = 0x308,   ///< Unsigned long integer.
     66    PS_TYPE_FLOAT            = 0x404,   ///< Single-precision Floating point.
     67    PS_TYPE_DOUBLE           = 0x408,   ///< Double-precision floating point.
     68    PS_TYPE_COMPLEX_FLOAT    = 0x808,   ///< Complex numbers consisting of single-precision floating point.
     69    PS_TYPE_COMPLEX_DOUBLE   = 0x810,   ///< Complex numbers consisting of double-precision floating point.
     70    PS_TYPE_PTR              = 0x000,   ///< Something else that's not supported for arithmetic.
    5771} psElemType;
    5872
     
    6175#define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400)
    6276#define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800)
    63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0xFF) )
     77#define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) )
    6478
    6579/** Dimensions of a data type.
    6680 *
    67  * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 
     81 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType
    6882struct. *
    6983 */
Note: See TracChangeset for help on using the changeset viewer.