12 #ifndef RecoTracker_MkFitCore_src_Ice_IceMemoryMacros_h
13 #define RecoTracker_MkFitCore_src_Ice_IceMemoryMacros_h
59 _asm push eax _asm push ecx _asm push edi _asm mov edi, dest _asm mov ecx, nb _asm mov eax,
60 value _asm
rep stosd _asm pop edi _asm pop ecx _asm pop eax
84 #define SIZEOFOBJECT sizeof(*this)
85 //#define CLEAROBJECT { memset(this, 0, SIZEOFOBJECT); }
86 #define DELETESINGLE(x) \
91 #define DELETEARRAY(x) \
93 operator delete[](x); \
96 #define SAFE_RELEASE(x) \
101 #define SAFE_DESTRUCT(x) \
103 (x)->SelfDestruct(); \
107 #ifdef __ICEERROR_H__
108 #define CHECKALLOC(x) \
110 return SetIceError("Out of memory.", EC_OUT_OF_MEMORY);
112 #define CHECKALLOC(x) \
118 #define SAFE_ALLOC(ptr, type, count) \
120 ptr = new type[count]; \
123 #endif // __ICEMEMORYMACROS_H__
void CopyMemory(void *dest, const void *src, udword size)
void FillMemory(void *dest, udword size, ubyte val)
void ZeroMemory(void *addr, udword size)
unsigned int udword
sizeof(udword) must be 4
unsigned char ubyte
sizeof(ubyte) must be 1
void MoveMemory(void *dest, const void *src, udword size)
tuple size
Write out results.