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