Go to the documentation of this file.
30 #ifndef DYNPROGR_SPE_H_
31 #define DYNPROGR_SPE_H_
37 #include <sys/types.h>
39 #define TOTAL_MEMORY 200000
40 #define MAX_TRANSFER 16384
42 #define __ALIGNED__ __attribute__((__aligned__(16)))
43 #define ALIGN16(x) (((x)+15)&(-16))
44 #define ALIGN32(x) (((x)+31)&(-32))
49 #define SPE_ALIGNMENT_TYPE_MASK 0xf
50 #define SPE_ALIGNMENT_TYPE_DOUBLE 5
51 #define SPE_ALIGNMENT_TYPE_FLOAT 4
52 #define SPE_ALIGNMENT_TYPE_INT 3
53 #define SPE_ALIGNMENT_TYPE_SHORT 2
54 #define SPE_ALIGNMENT_TYPE_BYTE 1
57 #define SPE_ALIGNMENT_PROFILE 16
96 static const int dataSize[5] = {1,2,4,
sizeof(float),
sizeof(
double)};
126 void *
alloc(
int n );