Browse Source

* tinyheap: Disable inline when FPC_TINYHEAP_HUGE is defined to prevent code bloat.

git-svn-id: trunk@46492 -
yury 5 years ago
parent
commit
9d41a435c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/inc/tinyheap.inc

+ 2 - 2
rtl/inc/tinyheap.inc

@@ -63,7 +63,7 @@
 
 
     procedure RegisterTinyHeapBlock(AAddress: Pointer; ASize:{$ifdef FPC_TINYHEAP_HUGE}LongInt{$else}PtrUInt{$endif}); forward;
     procedure RegisterTinyHeapBlock(AAddress: Pointer; ASize:{$ifdef FPC_TINYHEAP_HUGE}LongInt{$else}PtrUInt{$endif}); forward;
 
 
-    function EncodeTinyHeapFreeBlockSize(Size: PtrUInt): TTinyHeapFreeBlockSize; inline;
+    function EncodeTinyHeapFreeBlockSize(Size: PtrUInt): TTinyHeapFreeBlockSize; {$ifndef FPC_TINYHEAP_HUGE} inline; {$endif}
       begin
       begin
 {$ifdef FPC_TINYHEAP_HUGE}
 {$ifdef FPC_TINYHEAP_HUGE}
         EncodeTinyHeapFreeBlockSize.OfsSize := Size and 15;
         EncodeTinyHeapFreeBlockSize.OfsSize := Size and 15;
@@ -73,7 +73,7 @@
 {$endif FPC_TINYHEAP_HUGE}
 {$endif FPC_TINYHEAP_HUGE}
       end;
       end;
 
 
-    function DecodeTinyHeapFreeBlockSize(Size: TTinyHeapFreeBlockSize): PtrUInt; inline;
+    function DecodeTinyHeapFreeBlockSize(Size: TTinyHeapFreeBlockSize): PtrUInt; {$ifndef FPC_TINYHEAP_HUGE} inline; {$endif}
       begin
       begin
 {$ifdef FPC_TINYHEAP_HUGE}
 {$ifdef FPC_TINYHEAP_HUGE}
         DecodeTinyHeapFreeBlockSize := (PtrUInt(Size.SegSize) shl 4) + Size.OfsSize;
         DecodeTinyHeapFreeBlockSize := (PtrUInt(Size.SegSize) shl 4) + Size.OfsSize;