mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 09:29:26 +02:00
* fixed the support for infinity and nan float literal values in the webassembly
llvm-mc asm writer git-svn-id: trunk@49213 -
This commit is contained in:
parent
d53b17cadc
commit
4f828929a3
@ -210,11 +210,11 @@ implementation
|
|||||||
if (exponent=(1 shl exponent_bits)-1) then
|
if (exponent=(1 shl exponent_bits)-1) then
|
||||||
begin
|
begin
|
||||||
if fraction=0 then
|
if fraction=0 then
|
||||||
result:=result+'inf'
|
result:=result+'infinity'
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
result:=result+'nan';
|
result:=result+'nan';
|
||||||
if fraction<>((int64(1) shl fraction_bits)-1) then
|
if fraction<>(int64(1) shl (fraction_bits-1)) then
|
||||||
result:=result+':0x'+HexStr(fraction,fraction_hexdigits);
|
result:=result+':0x'+HexStr(fraction,fraction_hexdigits);
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user