Mercurial > hg > Game > Cerium
comparison TaskManager/include/types.h @ 647:7ba4ad4538b1 draft
MailManager rewrite. not yet worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Nov 2009 16:18:47 +0900 |
parents | 30dd8a3deb4a |
children | 08ed5e750d78 |
comparison
equal
deleted
inserted
replaced
646:9f9390b45f78 | 647:7ba4ad4538b1 |
---|---|
18 typedef uint32_t memaddr; | 18 typedef uint32_t memaddr; |
19 #endif | 19 #endif |
20 #else | 20 #else |
21 typedef char* memaddr; | 21 typedef char* memaddr; |
22 #endif | 22 #endif |
23 | |
24 | |
25 #define New(Type,Count) ((Type *)malloc(sizeof(Type)*Count)) | |
26 #define ReAlloc(Pointer,Type,Count) ((Type *)realloc((void*)Pointer,sizeof(Type)*Count)) | |
23 | 27 |
24 | 28 |
25 #define SPE_ALIGNMENT 16 | 29 #define SPE_ALIGNMENT 16 |
26 #define SPE_ALIGNMENT_FULL 128 | 30 #define SPE_ALIGNMENT_FULL 128 |
27 #define SPE_ALIGN __attribute__((aligned(SPE_ALIGNMENT))) | 31 #define SPE_ALIGN __attribute__((aligned(SPE_ALIGNMENT))) |