Pārlūkot izejas kodu

* inline the ** operators since they just call functions directly

git-svn-id: trunk@11461 -
Almindor 17 gadi atpakaļ
vecāks
revīzija
3588a9d02c
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      rtl/objpas/math.pp

+ 4 - 4
rtl/objpas/math.pp

@@ -314,8 +314,8 @@ function power(base,exponent : float) : float;
 { base^exponent }
 function intpower(base : float;const exponent : Integer) : float;
 
-operator ** (bas,expo : float) e: float;
-operator ** (bas,expo : int64) i: int64;
+operator ** (bas,expo : float) e: float; inline;
+operator ** (bas,expo : int64) i: int64; inline;
 
 { number converting }
 
@@ -909,13 +909,13 @@ function intpower(base : float;const exponent : Integer) : float;
   end;
 
 
-operator ** (bas,expo : float) e: float;
+operator ** (bas,expo : float) e: float; inline;
   begin
     e:=power(bas,expo);
   end;
 
 
-operator ** (bas,expo : int64) i: int64;
+operator ** (bas,expo : int64) i: int64; inline;
   begin
     i:=round(intpower(bas,expo));
   end;