Browse Source

- removed all ifdef cardinalmulfix code

Jonas Maebe 25 years ago
parent
commit
4f791d04b4
4 changed files with 660 additions and 668 deletions
  1. 4 11
      compiler/i386/n386add.pas
  2. 4 7
      compiler/options.pas
  3. 648 647
      rtl/inc/system.inc
  4. 4 3
      rtl/inc/systemh.inc

+ 4 - 11
compiler/i386/n386add.pas

@@ -958,18 +958,8 @@ interface
           do_normal:
           do_normal:
                    mboverflow:=false;
                    mboverflow:=false;
                    cmpop:=false;
                    cmpop:=false;
-{$ifndef cardinalmulfix}
-                   unsigned :=
-                     (left.resulttype^.deftype=pointerdef) or
-                     (right.resulttype^.deftype=pointerdef) or
-                     ((left.resulttype^.deftype=orddef) and
-                      (porddef(left.resulttype)^.typ=u32bit)) or
-                     ((right.resulttype^.deftype=orddef) and
-                      (porddef(right.resulttype)^.typ=u32bit));
-{$else cardinalmulfix}
                    unsigned := not(is_signed(left.resulttype)) or
                    unsigned := not(is_signed(left.resulttype)) or
                                not(is_signed(right.resulttype));
                                not(is_signed(right.resulttype));
-{$endif cardinalmulfix}
                    case nodetype of
                    case nodetype of
                       addn : begin
                       addn : begin
                                { this is a really ugly hack!!!!!!!!!! }
                                { this is a really ugly hack!!!!!!!!!! }
@@ -2299,7 +2289,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.6  2000-12-05 11:44:32  jonas
+  Revision 1.7  2000-12-16 15:56:18  jonas
+    - removed all ifdef cardinalmulfix code
+
+  Revision 1.6  2000/12/05 11:44:32  jonas
     + new integer regvar handling, should be much more efficient
     + new integer regvar handling, should be much more efficient
 
 
   Revision 1.5  2000/11/29 00:30:45  florian
   Revision 1.5  2000/11/29 00:30:45  florian

+ 4 - 7
compiler/options.pas

@@ -1235,12 +1235,6 @@ begin
 {$ifdef SUPPORT_FIXED}
 {$ifdef SUPPORT_FIXED}
   def_symbol('HASFIXED');
   def_symbol('HASFIXED');
 {$endif SUPPORT_FIXED}
 {$endif SUPPORT_FIXED}
-{$ifdef cardinalmulfix}
-{ for the compiler }
-  def_symbol('CARDINALMULFIX');
-{ for the RTL }
-  def_symbol('CARDINALMULFIXED');
-{$endif cardinalmulfix}
   def_symbol('PACKENUMFIXED');
   def_symbol('PACKENUMFIXED');
 
 
 { some stuff for TP compatibility }
 { some stuff for TP compatibility }
@@ -1510,7 +1504,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.20  2000-12-15 13:26:01  jonas
+  Revision 1.21  2000-12-16 15:56:19  jonas
+    - removed all ifdef cardinalmulfix code
+
+  Revision 1.20  2000/12/15 13:26:01  jonas
     * only return int64's from functions if it int64funcresok is defined
     * only return int64's from functions if it int64funcresok is defined
     + added int64funcresok define to options.pas
     + added int64funcresok define to options.pas
 
 

File diff suppressed because it is too large
+ 648 - 647
rtl/inc/system.inc


+ 4 - 3
rtl/inc/systemh.inc

@@ -236,9 +236,7 @@ Function  Swap (X:Int64):Int64;
 {$endif RTLLITE}
 {$endif RTLLITE}
 
 
 Function  Random(l:cardinal):cardinal;
 Function  Random(l:cardinal):cardinal;
-{$ifndef cardinalmulfixed}
 Function  Random(l:longint):longint;
 Function  Random(l:longint):longint;
-{$endif cardinalmulfixed}
 Function  Random: extended;
 Function  Random: extended;
 Procedure Randomize;
 Procedure Randomize;
 
 
@@ -486,7 +484,10 @@ const
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.14  2000-12-08 14:04:43  jonas
+  Revision 1.15  2000-12-16 15:56:19  jonas
+    - removed all ifdef cardinalmulfix code
+
+  Revision 1.14  2000/12/08 14:04:43  jonas
     + added pos(char,ansistring), because there is also a pos(char,shortstring)
     + added pos(char,ansistring), because there is also a pos(char,shortstring)
       and without the ansistring version, the shortstring version is always
       and without the ansistring version, the shortstring version is always
       called when calling pos(char,pchar), even when using $h+ (because the
       called when calling pos(char,pchar), even when using $h+ (because the

Some files were not shown because too many files changed in this diff