Changeset f103fb in git for omalloc/omBin.h
- Timestamp:
- Oct 4, 2000, 3:12:32 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 400633927935ad03438bf37f1f7967d1b891903d
- Parents:
- ff4e34fa88e2957ee964d2e38c9e058cf143c963
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omBin.h
rff4e34f rf103fb 4 4 * Author: obachman (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omBin.h,v 1. 3 2000-08-14 12:26:41obachman Exp $6 * Version: $Id: omBin.h,v 1.4 2000-10-04 13:12:29 obachman Exp $ 7 7 *******************************************************************/ 8 8 #ifndef OM_BIN_H 9 9 #define OM_BIN_H 10 11 12 10 13 11 #define omGetAlignedSpecBin(size) _omGetSpecBin(size, 1, 0) … … 19 17 void _omUnGetSpecBin(omBin *bin, int force); 20 18 size_t omGetUsedBinBytes(); 19 20 omBin omGetStickyBinOfBin(omBin bin); 21 void omMergeStickyBinIntoBin(omBin sticky_bin, omBin into_bin); 21 22 22 23 unsigned long omGetNewStickyBinTag(omBin bin); … … 31 32 32 33 void omPrintBinStats(FILE* fd); 34 #define omIsStickyBin(bin) (bin->sticky >= SIZEOF_VOIDP) 33 35 34 36 /*BEGINPRIVATE*/ 37 #ifndef OM_NDEBUG 38 int omIsKnownTopBin(omBin bin, int normal_bin); 39 #endif 35 40 #ifdef OM_HAVE_TRACK 36 41 #define omGetSpecTrackBin(size) _omGetSpecBin(size, 0, 1) … … 40 45 ((unsigned long) bin >= ((unsigned long) &om_StaticBin[0]) && \ 41 46 (unsigned long) bin <= ((unsigned long) &om_StaticBin[OM_MAX_BIN_INDEX])) 42 #define omIsNormalBin(bin) omIsStaticNormalBin(bin) || omFindInGList(om_SpecBin, next, bin, bin) 47 #define omIsNormalBin(bin) omIsStaticNormalBin(bin) || omFindInGList(om_SpecBin, next, bin, bin) || omIsStickyBin(bin) 48 #define omIsSpecBin(bin) (!omIsStaticNormalBin(bin) && !omIsStickyBin(bin)) 43 49 44 50 #ifdef OM_HAVE_TRACK … … 48 54 #define omIsTrackBin(bin) omIsStaticTrackBin(bin) || omFindInGList(om_SpecTrackBin, next, bin, bin) 49 55 #else 56 #define omIsKnownTopBin(bin, normal_bin) 1 50 57 #define omIsStaticTrackBin(bin) 0 51 58 #define omIsTrackBin(bin) 0
Note: See TracChangeset
for help on using the changeset viewer.