mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 07:39:31 +02:00
Handle the specific NaN pattern of mips floating-point unit
This commit is contained in:
parent
0f5c126a45
commit
ad1812f90a
@ -241,7 +241,14 @@ implementation
|
||||
else
|
||||
begin
|
||||
result:=result+'nan';
|
||||
{$ifndef CPUMIPS}
|
||||
if fraction<>(int64(1) shl (fraction_bits-1)) then
|
||||
{$else CPUMIPS}
|
||||
{ Legacy mips fpu has a different representation of 'standard' nan }
|
||||
{ Signalling bit is clear to signify non-signalling }
|
||||
{ Standard non-signalling NaN thus has all other bits set }
|
||||
if fraction<>((int64(1) shl (fraction_bits-1))-1) then
|
||||
{$endif CPUMIPS}
|
||||
result:=result+'(0x'+HexStr(fraction,fraction_hexdigits)+')';
|
||||
end;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user