Changeset 421acf in git
- Timestamp:
- Jun 30, 1999, 1:53:59 PM (24 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 2a7c6dbb1e3077525d8ae4337fd1a619f07e6bfd
- Parents:
- 2466d20119e74ce4c65be5b691035f06c0faf735
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mmemory.h
r2466d20 r421acf 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mmemory.h,v 1.1 8 1999-06-08 08:20:20Singular Exp $ */6 /* $Id: mmemory.h,v 1.19 1999-06-30 11:53:59 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 34 34 void mmFree( void* ); 35 35 char * mmStrdup( const char* ); 36 #if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP 36 37 void * mmAllocAlignedBlock( size_t ); 37 38 void * mmAllocAlignedBlock0( size_t ); 38 39 void mmFreeAlignedBlock( void*, size_t ); 40 #endif 39 41 40 42 #define AllocHeap mmAllocHeap … … 48 50 #define AllocL mmAlloc 49 51 #define mstrdup mmStrdup 52 #if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP 50 53 #define AllocAligned0 mmAllocAlignedBlock0 51 54 #define AllocAligned mmAllocAlignedBlock 52 55 #define FreeAligned mmFreeAlignedBlock 56 #elif SIZEOF_DOUBLE == SIZEOF_VOIDP 57 #define AllocAligned0 mmAllocBlock0 58 #define AllocAligned mmAllocBlock 59 #define FreeAligned mmFreeBlock 60 #endif 53 61 54 62 #else /* MDEBUG */ … … 65 73 void mmDBFree( void*, char*, int ); 66 74 char * mmDBStrdup( const char * s, char *fname, int lineno); 75 #if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP 67 76 void * mmDBAllocAlignedBlock( size_t, char*, int ); 68 77 void * mmDBAllocAlignedBlock0( size_t, char*, int); 69 78 void mmDBFreeAlignedBlock( void*, size_t, char*, int ); 79 #endif 70 80 71 81 #define AllocHeap(res, heap)\ … … 81 91 #define FreeL(a) mmDBFree(a,__FILE__,__LINE__) 82 92 #define mstrdup(s) mmDBStrdup(s, __FILE__, __LINE__) 93 #if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP 83 94 #define AllocAligned(s) mmDBAllocAlignedBlock(s, __FILE__, __LINE__) 84 95 #define AllocAligned0(s) mmDBAllocAlignedBlock0(s, __FILE__, __LINE__) 85 96 #define FreeAligned(a,s) mmDBFreeAlignedBlock(a, s, __FILE__, __LINE__) 97 #elif SIZEOF_DOUBLE == SIZEOF_VOIDP 98 #define AllocAligned(s) mmDBAllocBlock(s, __FILE__, __LINE__) 99 #define AllocAligned0(s) mmDBAllocBlock0(s, __FILE__, __LINE__) 100 #define FreeAligned(a,s) mmDBFreeBlock(a, s, __FILE__, __LINE__) 101 #endif 86 102 87 103 #endif /* MDEBUG */
Note: See TracChangeset
for help on using the changeset viewer.