Changeset 421acf in git for Singular/mmemory.h


Ignore:
Timestamp:
Jun 30, 1999, 1:53:59 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2a7c6dbb1e3077525d8ae4337fd1a619f07e6bfd
Parents:
2466d20119e74ce4c65be5b691035f06c0faf735
Message:
*hannes: added Aligned for SIZEOF_DOUBLE=SIZEOF_PTR


git-svn-id: file:///usr/local/Singular/svn/trunk@3191 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/mmemory.h

    r2466d20 r421acf  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mmemory.h,v 1.18 1999-06-08 08:20:20 Singular Exp $ */
     6/* $Id: mmemory.h,v 1.19 1999-06-30 11:53:59 Singular Exp $ */
    77/*
    88* ABSTRACT
     
    3434void   mmFree( void* );
    3535char * mmStrdup( const char* );
     36#if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP
    3637void * mmAllocAlignedBlock( size_t );
    3738void * mmAllocAlignedBlock0( size_t );
    3839void   mmFreeAlignedBlock( void*, size_t );
     40#endif
    3941
    4042#define AllocHeap               mmAllocHeap
     
    4850#define AllocL                  mmAlloc
    4951#define mstrdup                 mmStrdup
     52#if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP
    5053#define AllocAligned0           mmAllocAlignedBlock0
    5154#define AllocAligned            mmAllocAlignedBlock
    5255#define FreeAligned             mmFreeAlignedBlock
     56#elif SIZEOF_DOUBLE == SIZEOF_VOIDP
     57#define AllocAligned0           mmAllocBlock0
     58#define AllocAligned            mmAllocBlock
     59#define FreeAligned             mmFreeBlock
     60#endif
    5361
    5462#else /* MDEBUG */
     
    6573void   mmDBFree( void*, char*, int );
    6674char * mmDBStrdup( const char * s, char *fname, int lineno);
     75#if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP
    6776void * mmDBAllocAlignedBlock( size_t, char*, int );
    6877void * mmDBAllocAlignedBlock0( size_t,  char*, int);
    6978void   mmDBFreeAlignedBlock( void*, size_t, char*, int );
     79#endif
    7080
    7181#define AllocHeap(res, heap)\
     
    8191#define FreeL(a)                mmDBFree(a,__FILE__,__LINE__)
    8292#define mstrdup(s)              mmDBStrdup(s, __FILE__, __LINE__)
     93#if SIZEOF_DOUBLE == SIZEOF_VOIDP + SIZEOF_VOIDP
    8394#define AllocAligned(s)         mmDBAllocAlignedBlock(s, __FILE__, __LINE__)
    8495#define AllocAligned0(s)        mmDBAllocAlignedBlock0(s, __FILE__, __LINE__)
    8596#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
    86102
    87103#endif /* MDEBUG */
Note: See TracChangeset for help on using the changeset viewer.