math.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2003 by the Free Pascal development team.
  4. Implementation of mathematical Routines (only for real)
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$if defined(FPUFPA) or defined(FPUFPA10) or defined(FPUFPA11) or defined(FPUVFPV2) or defined(FPUVFPV3) or defined(FPUVFPV4) or defined(FPUVFPV3_D16)}
  12. {$ifndef FPC_SYSTEM_HAS_ABS}
  13. {$define FPC_SYSTEM_HAS_ABS}
  14. function fpc_abs_real(d : ValReal) : ValReal;compilerproc;
  15. begin
  16. { Function is handled internal in the compiler }
  17. runerror(207);
  18. result:=0;
  19. end;
  20. {$endif FPC_SYSTEM_HAS_ABS}
  21. {$ifndef FPC_SYSTEM_HAS_SQR}
  22. {$define FPC_SYSTEM_HAS_SQR}
  23. function fpc_sqr_real(d : ValReal) : ValReal;compilerproc;
  24. begin
  25. { Function is handled internal in the compiler }
  26. runerror(207);
  27. result:=0;
  28. end;
  29. {$endif FPC_SYSTEM_HAS_SQR}
  30. {$ifndef FPC_SYSTEM_HAS_SQRT}
  31. {$define FPC_SYSTEM_HAS_SQRT}
  32. function fpc_sqrt_real(d : ValReal) : ValReal;compilerproc;
  33. begin
  34. { Function is handled internal in the compiler }
  35. runerror(207);
  36. result:=0;
  37. end;
  38. {$endif FPC_SYSTEM_HAS_SQRT}
  39. {$endif}
  40. (* atn isn't supported by the linux fpe it seems
  41. {$define FPC_SYSTEM_HAS_ARCTAN}
  42. function fpc_arctan_real(d : extended) : extended;compilerproc;
  43. begin
  44. { Function is handled internal in the compiler }
  45. runerror(207);
  46. result:=0;
  47. end;
  48. *)
  49. (* lgn isn't supported by the linux fpe it seems
  50. {$define FPC_SYSTEM_HAS_LN}
  51. function fpc_ln_real(d : extended) : extended;compilerproc;
  52. begin
  53. { Function is handled internal in the compiler }
  54. runerror(207);
  55. result:=0;
  56. end;
  57. *)
  58. (* sind isn't supported by the linux fpe it seems
  59. {$define FPC_SYSTEM_HAS_SIN}
  60. function fpc_sin_real(d : extended) : extended;compilerproc;
  61. begin
  62. { Function is handled internal in the compiler }
  63. runerror(207);
  64. result:=0;
  65. end;
  66. *)
  67. (* cos isn't supported by the linux fpe it seems
  68. {$define FPC_SYSTEM_HAS_COS}
  69. function fpc_cos_real(d : extended) : extended;compilerproc;
  70. begin
  71. { Function is handled internal in the compiler }
  72. runerror(207);
  73. result:=0;
  74. end;
  75. *)