math.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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)}
  12. {$define FPC_SYSTEM_HAS_ABS}
  13. function fpc_abs_real(d : ValReal) : ValReal;compilerproc;
  14. begin
  15. { Function is handled internal in the compiler }
  16. runerror(207);
  17. result:=0;
  18. end;
  19. {$define FPC_SYSTEM_HAS_SQR}
  20. function fpc_sqr_real(d : ValReal) : ValReal;compilerproc;
  21. begin
  22. { Function is handled internal in the compiler }
  23. runerror(207);
  24. result:=0;
  25. end;
  26. {$ifndef FPC_SYSTEM_HAS_SQRT}
  27. {$define FPC_SYSTEM_HAS_SQRT}
  28. function fpc_sqrt_real(d : ValReal) : ValReal;compilerproc;
  29. begin
  30. { Function is handled internal in the compiler }
  31. runerror(207);
  32. result:=0;
  33. end;
  34. {$endif FPC_SYSTEM_HAS_SQRT}
  35. {$endif}
  36. (* atn isn't supported by the linux fpe it seems
  37. {$define FPC_SYSTEM_HAS_ARCTAN}
  38. function fpc_arctan_real(d : extended) : extended;compilerproc;
  39. begin
  40. { Function is handled internal in the compiler }
  41. runerror(207);
  42. result:=0;
  43. end;
  44. *)
  45. (* lgn isn't supported by the linux fpe it seems
  46. {$define FPC_SYSTEM_HAS_LN}
  47. function fpc_ln_real(d : extended) : extended;compilerproc;
  48. begin
  49. { Function is handled internal in the compiler }
  50. runerror(207);
  51. result:=0;
  52. end;
  53. *)
  54. (* sind isn't supported by the linux fpe it seems
  55. {$define FPC_SYSTEM_HAS_SIN}
  56. function fpc_sin_real(d : extended) : extended;compilerproc;
  57. begin
  58. { Function is handled internal in the compiler }
  59. runerror(207);
  60. result:=0;
  61. end;
  62. *)
  63. (* cos isn't supported by the linux fpe it seems
  64. {$define FPC_SYSTEM_HAS_COS}
  65. function fpc_cos_real(d : extended) : extended;compilerproc;
  66. begin
  67. { Function is handled internal in the compiler }
  68. runerror(207);
  69. result:=0;
  70. end;
  71. *)