mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 06:08:16 +02:00
* unified settings for CPU "size"
git-svn-id: trunk@46757 -
This commit is contained in:
parent
24ea912ff5
commit
03778f9b7f
@ -24,7 +24,7 @@ program tcalcla1;
|
||||
{$mode objfpc}
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -28,7 +28,7 @@ program tcalcst1;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalcst2;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalcst3;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalcst4;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -29,7 +29,7 @@ program tcalcst5;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -34,7 +34,7 @@ program tcalcst6;
|
||||
{$define safecall_is_cdecl}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalcst7;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalcst8;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -31,7 +31,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -31,7 +31,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -31,7 +31,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -33,7 +33,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -31,7 +31,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -31,7 +31,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -31,7 +31,7 @@
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
|
||||
{ REAL should map to single or double }
|
||||
|
@ -20,7 +20,7 @@
|
||||
program tcalobj1;
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -20,7 +20,7 @@
|
||||
program tcalobj2;
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -20,7 +20,7 @@
|
||||
program tcalobj3;
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -22,7 +22,7 @@
|
||||
program tcalobj4;
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -20,7 +20,7 @@
|
||||
program tcalobj6;
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -20,7 +20,7 @@
|
||||
program tcalobj7;
|
||||
{$R+}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
const
|
||||
{ should be defined depending on CPU target }
|
||||
|
@ -30,7 +30,7 @@ program tcalval1;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalval2;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalval3;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalval4;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -32,7 +32,7 @@ program tcalval5;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalval7;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalval8;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalvar1;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalvar2;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -28,7 +28,7 @@ program tcalvar3;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalvar4;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -32,7 +32,7 @@ program tcalvar5;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -36,7 +36,7 @@ program tcalvar6;
|
||||
{$define safecall_is_cdecl}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalvar7;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -30,7 +30,7 @@ program tcalvar8;
|
||||
{$define tp}
|
||||
{$endif}
|
||||
|
||||
{$i tcaldefs.inc}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{ REAL should map to single or double }
|
||||
{ so it is not checked, since single }
|
||||
|
@ -25,17 +25,13 @@ const
|
||||
{ Should be equal to the maximum offset possible in indirect addressing
|
||||
mode with displacement. (CPU SPECIFIC) }
|
||||
|
||||
{$ifdef cpu68k}
|
||||
{$define use_small}
|
||||
{$endif}
|
||||
{$ifdef cpui8086}
|
||||
{$define use_small}
|
||||
{$endif}
|
||||
{$ifdef use_small}
|
||||
{$i cpudefs.inc }
|
||||
|
||||
{$ifdef cpusmall}
|
||||
MAX_DISP = 32767;
|
||||
{$else}
|
||||
{$else cpusmall}
|
||||
MAX_DISP = 65535;
|
||||
{$endif}
|
||||
{$endif cpusmall}
|
||||
|
||||
{ These different alignments are described in the PowerPC ABI
|
||||
supplement, they should represent most possible cases.
|
||||
|
@ -39,19 +39,21 @@ const
|
||||
min_small_array = 0;
|
||||
max_small_array = 255;
|
||||
|
||||
{$IFDEF CPU16}
|
||||
{$i cpudefs.inc}
|
||||
|
||||
{$ifdef cpusmall}
|
||||
min_big_neg_array = -770;
|
||||
max_big_neg_array = 770;
|
||||
|
||||
min_big_array = 0;
|
||||
max_big_array = 770;
|
||||
{$ELSE CPU16}
|
||||
{$else cpusmall}
|
||||
min_big_neg_array = -77000;
|
||||
max_big_neg_array = 77000;
|
||||
|
||||
min_big_array = 0;
|
||||
max_big_array = 77000;
|
||||
{$ENDIF CPU16}
|
||||
{$endif cpusmall}
|
||||
|
||||
min_big_odd_array = 0;
|
||||
max_big_odd_array = 255;
|
||||
|
Loading…
Reference in New Issue
Block a user