mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 23:09:09 +02:00
* forgotten commit of r3566
git-svn-id: trunk@3569 -
This commit is contained in:
parent
1e3352a350
commit
f27fa0d24f
@ -958,7 +958,7 @@ implementation
|
|||||||
{ division by 1 returns result }
|
{ division by 1 returns result }
|
||||||
if a = 1 then
|
if a = 1 then
|
||||||
op:=OP_NONE
|
op:=OP_NONE
|
||||||
else if ispowerof2(int64(a), powerval) then
|
else if ispowerof2(int64(a), powerval) and not(cs_check_overflow in aktlocalswitches) then
|
||||||
begin
|
begin
|
||||||
a := powerval;
|
a := powerval;
|
||||||
op:= OP_SHR;
|
op:= OP_SHR;
|
||||||
@ -976,7 +976,7 @@ implementation
|
|||||||
else
|
else
|
||||||
if a=0 then
|
if a=0 then
|
||||||
op:=OP_MOVE
|
op:=OP_MOVE
|
||||||
else if ispowerof2(int64(a), powerval) then
|
else if ispowerof2(int64(a), powerval) and not(cs_check_overflow in aktlocalswitches) then
|
||||||
begin
|
begin
|
||||||
a := powerval;
|
a := powerval;
|
||||||
op:= OP_SHL;
|
op:= OP_SHL;
|
||||||
|
Loading…
Reference in New Issue
Block a user