00001 #ifndef MOC_DATATYPE_PPU_H_ 00002 #define MOC_DATATYPE_PPU_H_ 00003 00004 #include "../moc_datatype.h" 00005 /** 00006 * \addtogroup p2p_datatype 00007 **/ 00008 //@{ 00009 /** 00010 * @name PPU-only 00011 **/ 00012 //@{ 00013 00014 /** 00015 * C-Datatype long. 00016 * It has a size of 8 byte. 00017 * \attention On the SPU long has a size of 4 byte. So if 00018 * you are trying to send data of type long from the PPU to a 00019 * SPU or vice versa there will be an error. 00020 **/ 00021 #define MOC_LONG ((MOC_Datatype)64+2) 00022 00023 /** 00024 * C-Datatype unsigned long. 00025 * It has a size of 8 byte. 00026 * \attention On the SPU unsigned long has a size of 4 byte. So if 00027 * you are trying to send data of type long from the PPU to a 00028 * SPU or vice versa there will be an error. 00029 **/ 00030 #define MOC_UNSIGNED_LONG ((MOC_Datatype)64+3) 00031 00032 00033 00034 /** 00035 * Cell-specific Datatype vector bool char (vec_bchar16). 00036 * It has a size of 16 byte. 00037 * \note PPU-only. Is mapped to the SPU-Datatype vector unsigned char. 00038 **/ 00039 #define MOC_VEC_BCHAR16 ((MOC_Datatype)128+0) 00040 00041 /** 00042 * Cell-specific Datatype vector bool short (vec_bshort8). 00043 * It has a size of 16 byte. 00044 * \note PPU-only. Is mapped to the SPU-Datatype vector unsigned short. 00045 **/ 00046 #define MOC_VEC_BSHORT8 ((MOC_Datatype)128+1) 00047 00048 /** 00049 * Cell-specific Datatype vector pixel (vec_pixel8). 00050 * It has a size of 16 byte. 00051 * \note PPU-only. Is mapped to the SPU-Datatype vector unsigned short. 00052 **/ 00053 #define MOC_VEC_PIXEL8 ((MOC_Datatype)128+1) 00054 00055 /** 00056 * Cell-specific Datatype vector bool int (vec_bint4). 00057 * It has a size of 16 byte. 00058 * \note PPU-only. Is mapped to the SPU-Datatype vector unsigned int. 00059 **/ 00060 #define MOC_VEC_BINT4 ((MOC_Datatype)128+2) 00061 00062 00063 //@} 00064 //@} 00065 #endif /*MOC_DATATYPE_PPU_H_*/
1.5.6