IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2007, 11:26:52 AM (19 years ago)
Author:
jhoblitt
Message:

convert P_PS_MEMMAGIC from a psPTR to a psU32 to save memory on 64bit platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jch-memory/psLib/src/sys/psMemory.h

    r10914 r10940  
    1414 *  @ingroup MemoryManagement
    1515 *
    16  *  @version $Revision: 1.61.2.7 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2007-01-05 04:36:19 $
     16 *  @version $Revision: 1.61.2.8 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2007-01-05 21:26:52 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3232 */
    3333
    34 #define P_PS_MEMMAGIC (psPtr)0xdeadbeef   // Magic number in psMemBlock header
     34#define P_PS_MEMMAGIC (psU32)0xdeadbeef   // Magic number in psMemBlock header
    3535
    3636/**
     
    6868typedef struct psMemBlock
    6969{
    70     const void* startblock;            ///< initialised to p_psMEMMAGIC
     70    const psU32 startblock;            ///< initialised to p_psMEMMAGIC
    7171    struct psMemBlock* previousBlock;  ///< previous block in allocation list
    7272    struct psMemBlock* nextBlock;      ///< next block allocation list
     
    8080    psReferenceCount refCounter;       ///< how many times pointer is referenced
    8181    bool persistent;                   ///< marks if this non-user persistent data like error stack, etc.
    82     const void* endblock;              ///< initialised to p_psMEMMAGIC
     82    const psU32 endblock;              ///< initialised to p_psMEMMAGIC
    8383}
    8484psMemBlock;
Note: See TracChangeset for help on using the changeset viewer.