mathuh.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. type
  13. TFPURoundingMode = (rmNearest, rmDown, rmUp, rmTruncate);
  14. TFPUPrecisionMode = (pmSingle, pmReserved, pmDouble, pmExtended);
  15. TFPUException = (exInvalidOp, exDenormalized, exZeroDivide,
  16. exOverflow, exUnderflow, exPrecision);
  17. TFPUExceptionMask = set of TFPUException;
  18. function GetRoundMode: TFPURoundingMode;
  19. function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
  20. function GetPrecisionMode: TFPUPrecisionMode;
  21. function SetPrecisionMode(const Precision: TFPUPrecisionMode): TFPUPrecisionMode;
  22. function GetExceptionMask: TFPUExceptionMask;
  23. function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
  24. procedure ClearExceptions(RaisePending: Boolean {$ifndef VER1_0}=true{$endif});
  25. {
  26. $Log$
  27. Revision 1.3 2005-02-14 17:13:31 peter
  28. * truncate log
  29. Revision 1.2 2005/02/13 18:58:27 florian
  30. + FPU controll routines in math unit
  31. }