basemath.pp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2005 by Florian Klaempfl
  4. member of the Free Pascal development team
  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. {-------------------------------------------------------------------------
  12. Using functions from AMath/DAMath libraries, which are covered by the
  13. following license:
  14. (C) Copyright 2009-2013 Wolfgang Ehrhardt
  15. This software is provided 'as-is', without any express or implied warranty.
  16. In no event will the authors be held liable for any damages arising from
  17. the use of this software.
  18. Permission is granted to anyone to use this software for any purpose,
  19. including commercial applications, and to alter it and redistribute it
  20. freely, subject to the following restrictions:
  21. 1. The origin of this software must not be misrepresented; you must not
  22. claim that you wrote the original software. If you use this software in
  23. a product, an acknowledgment in the product documentation would be
  24. appreciated but is not required.
  25. 2. Altered source versions must be plainly marked as such, and must not be
  26. misrepresented as being the original software.
  27. 3. This notice may not be removed or altered from any source distribution.
  28. ----------------------------------------------------------------------------}
  29. {$MODE objfpc}
  30. {$inline on }
  31. {$GOTO on}
  32. {$IFNDEF FPC_DOTTEDUNITS}
  33. unit BaseMath;
  34. {$ENDIF FPC_DOTTEDUNITS}
  35. interface
  36. { cpu specific stuff }
  37. type
  38. TFPURoundingMode = system.TFPURoundingMode;
  39. TFPUPrecisionMode = system.TFPUPrecisionMode;
  40. TFPUException = system.TFPUException;
  41. TFPUExceptionMask = system.TFPUExceptionMask;
  42. function GetRoundMode: TFPURoundingMode;
  43. function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
  44. function GetPrecisionMode: TFPUPrecisionMode;
  45. function SetPrecisionMode(const Precision: TFPUPrecisionMode): TFPUPrecisionMode;
  46. function GetExceptionMask: TFPUExceptionMask;
  47. function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
  48. procedure ClearExceptions(RaisePending: Boolean =true);
  49. implementation
  50. { include CPU specific stuff }
  51. {$I basemath.inc}
  52. end.