mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 17:49:25 +02:00
+ Implemented m68k-specific (actually, softfloat-specific) part of Math unit.
git-svn-id: trunk@27216 -
This commit is contained in:
parent
94a045aa3d
commit
29bf988ca7
@ -12,26 +12,26 @@
|
|||||||
|
|
||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
|
||||||
{$warning TODO}
|
|
||||||
|
|
||||||
function GetExceptionMask: TFPUExceptionMask;
|
function GetExceptionMask: TFPUExceptionMask;
|
||||||
begin
|
begin
|
||||||
Result := [];
|
Result := softfloat_exception_mask;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
|
function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
|
||||||
begin
|
begin
|
||||||
{ TODO }
|
result:=softfloat_exception_mask;
|
||||||
|
softfloat_exception_mask:=mask;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetRoundMode: TFPURoundingMode;
|
function GetRoundMode: TFPURoundingMode;
|
||||||
begin
|
begin
|
||||||
Result:=rmNearest;
|
Result:=softfloat_rounding_mode;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
|
function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
|
||||||
begin
|
begin
|
||||||
Result:=rmNearest;
|
Result:=softfloat_rounding_mode;
|
||||||
|
softfloat_rounding_mode:=RoundMode;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetPrecisionMode: TFPUPrecisionMode;
|
function GetPrecisionMode: TFPUPrecisionMode;
|
||||||
@ -46,5 +46,6 @@ end;
|
|||||||
|
|
||||||
procedure ClearExceptions(RaisePending: Boolean);
|
procedure ClearExceptions(RaisePending: Boolean);
|
||||||
begin
|
begin
|
||||||
|
softfloat_exception_flags:=[];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user