Bladeren bron

+ Added credits for functions reused from AMath/DAMath libraries.

git-svn-id: trunk@27518 -
sergei 11 jaren geleden
bovenliggende
commit
bd58adfcc9
3 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 1 0
      rtl/i386/math.inc
  2. 1 0
      rtl/inc/genmath.inc
  3. 3 1
      rtl/objpas/math.pp

+ 1 - 0
rtl/i386/math.inc

@@ -111,6 +111,7 @@
     end;
     end;
 
 
   {$define FPC_SYSTEM_HAS_EXP}
   {$define FPC_SYSTEM_HAS_EXP}
+    { exp function adapted from AMath library (C) Copyright 2009-2013 Wolfgang Ehrhardt }
     function fpc_exp_real(d : ValReal) : ValReal;assembler;compilerproc;
     function fpc_exp_real(d : ValReal) : ValReal;assembler;compilerproc;
       asm
       asm
         fldt        d
         fldt        d

+ 1 - 0
rtl/inc/genmath.inc

@@ -368,6 +368,7 @@ type
 
 
 {$ifndef SYSTEM_HAS_LDEXP}
 {$ifndef SYSTEM_HAS_LDEXP}
 {$ifdef SUPPORT_DOUBLE}
 {$ifdef SUPPORT_DOUBLE}
+{ ldexpd function adapted from DAMath library (C) Copyright 2013 Wolfgang Ehrhardt }
     function ldexp( x: Real; N: Integer):Real;
     function ldexp( x: Real; N: Integer):Real;
     {* ldexp() multiplies x by 2**n.                                    *}
     {* ldexp() multiplies x by 2**n.                                    *}
     var
     var

+ 3 - 1
rtl/objpas/math.pp

@@ -783,7 +783,7 @@ begin
   csc := cosecant(x);
   csc := cosecant(x);
 end;
 end;
 
 
-
+{ arcsin and arccos functions from AMath library (C) Copyright 2009-2013 Wolfgang Ehrhardt }
 function arcsin(x : float) : float;
 function arcsin(x : float) : float;
 begin
 begin
   arcsin:=arctan2(x,sqrt((1.0-x)*(1.0+x)));
   arcsin:=arctan2(x,sqrt((1.0-x)*(1.0+x)));
@@ -881,6 +881,7 @@ function artanh(x : float) : float;
     artanh:=(lnxp1(x)-lnxp1(-x))*0.5;
     artanh:=(lnxp1(x)-lnxp1(-x))*0.5;
   end;
   end;
 
 
+{ hypot function from AMath library (C) Copyright 2009-2013 Wolfgang Ehrhardt }
 function hypot(x,y : float) : float;
 function hypot(x,y : float) : float;
   begin
   begin
     x:=abs(x);
     x:=abs(x);
@@ -910,6 +911,7 @@ function logn(n,x : float) : float;
      logn:=ln(x)/ln(n);
      logn:=ln(x)/ln(n);
   end;
   end;
 
 
+{ lnxp1 function from AMath library (C) Copyright 2009-2013 Wolfgang Ehrhardt }
 function lnxp1(x : float) : float;
 function lnxp1(x : float) : float;
   var
   var
     y: float;
     y: float;