mathuh.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2004 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. { x86-64 fpu control word }
  13. type
  14. TFPURoundingMode = (rmNearest, rmDown, rmUp, rmTruncate);
  15. TFPUPrecisionMode = (pmSingle, pmReserved, pmDouble, pmExtended);
  16. TFPUException = (exInvalidOp, exDenormalized, exZeroDivide,
  17. exOverflow, exUnderflow, exPrecision);
  18. TFPUExceptionMask = set of TFPUException;
  19. function GetRoundMode: TFPURoundingMode;
  20. function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
  21. function GetPrecisionMode: TFPUPrecisionMode;
  22. function SetPrecisionMode(const Precision: TFPUPrecisionMode): TFPUPrecisionMode;
  23. function GetExceptionMask: TFPUExceptionMask;
  24. function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
  25. procedure ClearExceptions(RaisePending: Boolean {$ifndef VER1_0}=true{$endif});
  26. {
  27. $Log$
  28. Revision 1.1 2004-02-21 22:53:50 florian
  29. * several 64 bit/x86-64 fixes
  30. }