123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- {
- This file is part of the Free Pascal run time library.
- Copyright (c) 2012 by Sven Barth
- member of the Free Pascal development team
- 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.
- **********************************************************************}
- function GetExceptionMask: TFPUExceptionMask;
- begin
- Result := softfloat_exception_mask;
- end;
- function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
- begin
- result:=softfloat_exception_mask;
- softfloat_exception_mask:=mask;
- end;
- function GetRoundMode: TFPURoundingMode;
- begin
- Result:=softfloat_rounding_mode;
- end;
- function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
- begin
- Result:=softfloat_rounding_mode;
- softfloat_rounding_mode:=RoundMode;
- end;
- function GetPrecisionMode: TFPUPrecisionMode;
- begin
- result:=pmDouble;
- end;
- function SetPrecisionMode(const Precision: TFPUPrecisionMode): TFPUPrecisionMode;
- begin
- result:=pmDouble;
- end;
- procedure ClearExceptions(RaisePending: Boolean);
- begin
- softfloat_exception_flags:=[];
- end;
|