123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- {
- $Id$
- This file is part of the Free Pascal run time library.
- Copyright (c) 2003 by the Free Pascal development team.
- Implementation of mathematical Routines (only for real)
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- {$ifdef INTERNCONSTINTF}
- {$define FPC_SYSTEM_HAS_ABS}
- function fpc_abs_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- {$define FPC_SYSTEM_HAS_SQR}
- function fpc_sqr_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- {$define FPC_SYSTEM_HAS_SQRT}
- function fpc_sqrt_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- { atn isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_ARCTAN}
- function fpc_arctan_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- }
- { lgn isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_LN}
- function fpc_ln_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- }
- { sind isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_SIN}
- function fpc_sin_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- }
- { cos isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_COS}
- function fpc_cos_real(d : extended) : extended;compilerproc;
- begin
- { Function is handled internal in the compiler }
- runerror(207);
- result:=0;
- end;
- }
- {$else INTERNCONSTINTF}
- {$define FPC_SYSTEM_HAS_ABS}
- function abs(d : extended) : extended;[internproc:in_abs_extended];
- {$define FPC_SYSTEM_HAS_SQR}
- function sqr(d : extended) : extended;[internproc:in_sqr_extended];
- {$define FPC_SYSTEM_HAS_SQRT}
- function sqrt(d : extended) : extended;[internproc:in_sqrt_extended];
- { atn isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_ARCTAN}
- function arctan(d : extended) : extended;[internproc:in_arctan_extended];
- }
- { lgn isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_LN}
- function ln(d : extended) : extended;[internproc:in_ln_extended];
- }
- { sind isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_SIN}
- function sin(d : extended) : extended;[internproc:in_sin_extended];
- }
- { cos isn't supported by the linux fpe it seems
- {$define FPC_SYSTEM_HAS_COS}
- function cos(d : extended) : extended;[internproc:in_cos_extended];
- }
- {$endif INTERNCONSTINTF}
- {
- $Log$
- Revision 1.6 2005-01-06 13:02:03 florian
- * arctan, sin and cos are done in software on the arm
- Revision 1.5 2005/01/01 18:34:24 florian
- * fixed building
- Revision 1.4 2004/03/16 22:02:26 florian
- * disabled internal ln
- Revision 1.3 2004/01/27 15:04:49 florian
- * some math nodes are inlined now
- Revision 1.2 2003/09/03 14:09:37 florian
- * arm fixes to the common rtl code
- * some generic math code fixed
- * ...
- Revision 1.1 2003/08/21 16:41:54 florian
- * empty dummy files
- + [long|set]jmp implemented
- }
|