mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 16:09:33 +02:00
+ WebAssembly: use the 64-bit div instruction, instead of an RTL helper for 64-bit division
This commit is contained in:
parent
7f34f27a1c
commit
b11434a6f8
@ -578,9 +578,6 @@ implementation
|
||||
end;
|
||||
OS_64,OS_S64:
|
||||
begin
|
||||
{ unsigned 64 bit division must be done via a helper }
|
||||
if op=OP_DIV then
|
||||
internalerror(2010120530);
|
||||
{ boolean not: =0? for boolean }
|
||||
if (op=OP_NOT) and is_pasbool(size) then
|
||||
begin
|
||||
|
@ -69,6 +69,7 @@ implementation
|
||||
function twasmmoddivnode.use_moddiv64bitint_helper: boolean;
|
||||
begin
|
||||
result:=
|
||||
(nodetype=modn) and
|
||||
(left.resultdef.typ=orddef) and
|
||||
(right.resultdef.typ=orddef) and
|
||||
((torddef(left.resultdef).ordtype=u64bit) or
|
||||
|
Loading…
Reference in New Issue
Block a user